ad31768dd9
Add adjustable stack size and call depth (bp #12728 ) ( #12769 )
...
* Add adjustable stack size and call depth (#12728 )
(cherry picked from commit c3907be623
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/Cargo.toml
# programs/bpf/build.rs
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/lib.rs
# runtime/src/feature_set.rs
# runtime/src/process_instruction.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 23:27:59 +00:00
079ea91d6f
Add convenience script for working in stability branches ( #12765 ) ( #12772 )
...
* Add convenience script for working in stability branches
* Update scripts/curgo.sh
Co-authored-by: Michael Vines <mvines@gmail.com >
* re{locate,name} to /cargo
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit ed95071c27
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-09 22:29:47 +00:00
48d08f2010
Bump max invoke depth to 4 (bp #12742 ) ( #12763 )
...
* Bump max invoke depth to 4 (#12742 )
(cherry picked from commit 2cd7cd3149
)
# Conflicts:
# programs/bpf/rust/invoked/src/processor.rs
# runtime/src/feature_set.rs
# runtime/src/message_processor.rs
# runtime/src/process_instruction.rs
* fix conflicts
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 21:12:35 +00:00
b34ba0fc4e
Remove skip-no-mangle entirely (bp #12696 ) ( #12708 )
...
* Remove skip-no-mangle entirely (#12696 )
(cherry picked from commit 41ad3dd8f0
)
# Conflicts:
# account-decoder/Cargo.toml
# core/Cargo.toml
# transaction-status/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 20:44:50 +00:00
41b99b96c0
Ryos compat fixes 1.3 ( #12762 )
...
* Fix various ledger-tool error due to no builtins
* Add missing file...
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-09 11:49:15 -06:00
fea6e4d39d
Only fetch snapshot if it's newer than local ( #12663 ) ( #12751 )
...
* Only fetch snapshot if it's newer than local
* Prefer as_ref over clone
* More nits
* Don't wait forwever for newer snapshot
(cherry picked from commit 81489ccb76
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-09 07:23:06 +00:00
fced68c3f4
Add inflation_kill_switch feature ( #12748 )
...
(cherry picked from commit c8807d227a
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-09 05:39:17 +00:00
7f006d810c
Add new internal accounts ( #12740 ) ( #12746 )
...
Co-authored-by: publish-docs.sh <maintainers@solana.com >
(cherry picked from commit 2c5f83c264
)
Co-authored-by: Dan Albert <dan@solana.com >
2020-10-09 02:18:27 +00:00
cab1b102e6
Minor variable name cleanup ( #12744 )
...
(cherry picked from commit 3a04026599
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-09 02:03:03 +00:00
448887a469
Fixup wallet docs, manual cherrypick for backport ( #12738 )
...
Co-authored-by: publish-docs.sh <maintainers@solana.com >
2020-10-08 21:51:24 +00:00
bded162ed8
fix conflicts ( #12733 )
...
Co-authored-by: Jack May <jack@solana.com >
2020-10-08 20:40:59 +00:00
765dd1b775
Nit, short name (bp #12195 ) ( #12732 )
...
* Nit, short name (#12195 )
(cherry picked from commit daba17a95c
)
# Conflicts:
# runtime/src/bank.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-08 20:03:15 +00:00
b74fbdf7eb
Pipe FeatureSet though InvokeContext (bp #12536 ) ( #12730 )
...
* Pipe FeatureSet though InvokeContext (#12536 )
* Pipe FeatureSet though InvokeContext
* gate program size cap
* nit
(cherry picked from commit 74fcb184b2
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/feature_set.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-08 18:18:51 +00:00
fb0f0adb16
Display vote/stake account epoch rewards
2020-10-08 08:34:40 -07:00
2a3c4d87ce
Support multiple connected HW wallets configured with the same seed phrase (bp #12716 ) ( #12719 )
...
* remote-wallet: Select hardware wallets based on host device path
(cherry picked from commit 8e3353d9ef
)
* remote-wallet: Append wallet "name" to entries in selector UI
(cherry picked from commit f1a2ad1b7d
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-08 05:46:24 +00:00
eaa6e04e83
Revert "Restore --expected-shred-version argument for mainnet-beta" ( #12722 )
...
This reverts commit 9410eab2af
.
(cherry picked from commit dadc84fa8c
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-08 04:48:40 +00:00
925973ee60
RPC: Transaction deser can be quite slow (bp #12683 ) ( #12702 )
...
* RPC: Check encoded transaction size before decoding
(cherry picked from commit 7f67d36777
)
* RPC: Support base64 encoded transactions
Defaults to base58
(cherry picked from commit e35889542b
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-07 05:50:23 +00:00
2c55319e41
Add env variable for rayon thread counts ( #12693 ) ( #12698 )
...
(cherry picked from commit 37222683ee
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-07 01:26:18 +00:00
f22a5efde5
Faucet request limiter can overflow (bp #12691 ) ( #12694 )
...
* faucet: Add failing test case
(cherry picked from commit 5ae704d560
)
* faucet: Use checked math in request limiter
(cherry picked from commit 87de82ac94
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-06 20:02:14 +00:00
add5c5b29f
Add systemd and log rotation section to validator start docs ( #12675 ) ( #12676 )
...
* Add systemd and log rotation section to validator start docs
* Update docs/src/running-validator/validator-start.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update docs/src/running-validator/validator-start.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit fbb5e5c4e6
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-05 19:34:44 +00:00
1b53f8b33d
Update channel_restriction.sh
2020-10-04 10:28:12 -06:00
34591d2f2f
Show commit in --version
and ledger-tool's log ( #12636 ) ( #12662 )
...
* Show commit in `--version` and ledger-tool's log
* Another handy hidden env var
* Fix test
* Rename to semver!
* Fix syntax error...
(cherry picked from commit 026e7de819
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-03 16:45:27 +00:00
bc1b95d6d0
Bump version to v1.3.16
2020-10-03 04:24:03 +00:00
90d586a4f8
solana stakes
now employs server-side filtering if only one vote account is provided (#12657 )
...
(cherry picked from commit 9abaf6ec1d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
v1.3.15
2020-10-03 02:00:49 +00:00
efcb5cd9f0
Fix zero-len slice translations ( #12642 ) ( #12656 )
...
(cherry picked from commit d0aa8a6446
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-03 01:58:27 +00:00
ffa0ee69ca
Weight push peers by how long we haven't pushed to them ( #12620 ) ( #12651 )
...
(cherry picked from commit 71c469c72b
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-02 22:27:35 +00:00
a983430ddb
Check CPI program is executable ( #12644 ) ( #12649 )
...
(cherry picked from commit adeb06e550
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-02 22:27:29 +00:00
bd94250fca
Improve solana deploy ( #12621 ) ( #12646 )
...
* Check program account before attempting to create it
* Use last_valid_slot to timeout status checks
* Include transaction history in RpcClient::get_signature_statuses requests
* Improve solana-deploy send-transactions
* Clippy
* Improve mock deploy test
* Review comments
(cherry picked from commit 19f385db76
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-02 20:44:26 +00:00
db5251a524
solana catchup
now retries if the initial RPC connection fails (#12645 )
...
(cherry picked from commit 978b26a9c5
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 20:42:51 +00:00
efb665071c
limits number of threads in core/tests/crds_gossip.rs ( #12615 ) ( #12641 )
...
crds_gossip tests start large networks, which with large thread-pools
will exhaust system resources, causing failures in ci tests:
https://buildkite.com/solana-labs/solana/builds/31953
The commit limits size of thread-pools in the test.
(cherry picked from commit 2c669f65f1
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-02 20:01:49 +00:00
e69ee1ec64
Add GetConfirmedBlocksWithLimit RPC method
...
(cherry picked from commit 75b621160e
)
2020-10-02 08:21:08 -07:00
307686eeba
Add --no-port-check to validator ( #12245 ) ( #12638 )
...
(cherry picked from commit aa70dbfc62
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-02 12:46:40 +00:00
de1e2f9c0c
Add inflation subcommand ( #12632 )
...
(cherry picked from commit 42aeead6b4
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 07:14:02 +00:00
01f93003d3
Improve block
command output ( #12631 )
...
(cherry picked from commit 14036ac580
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 07:03:29 +00:00
75219afc91
Document postBalance field ( #12628 )
...
(cherry picked from commit e03a64ae1b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 05:38:11 +00:00
71526923a6
Expose validator cli arguments for pubsub buffer tuning ( #12622 )
...
(cherry picked from commit f41a73d76a
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-02 04:43:44 +00:00
29af9d1a36
Avoid overflow when computing rent distribution (bp #12112 ) ( #12607 )
...
* Avoid overflow when computing rent distribution (#12112 )
* Avoid overflow when computing rent distribution
* Use assert_eq!....
* Fix tests
* Add test
* Use FeatureSet
* Add comments
* Address review comments
* Tweak a bit.
* Fix fmt
(cherry picked from commit e3773d919c
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/feature_set.rs
* Fix conflict
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-02 01:37:47 +00:00
46311181dc
Add nonced-tx check to RpcClient ( #12600 ) ( #12604 )
...
(cherry picked from commit 8f10e407ee
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-01 07:51:16 +00:00
17de653ce0
Move nonce utils from runtime to sdk (bp #12577 ) ( #12583 )
...
* runtime: Move prepare_if_nonce_account into accounts
(cherry picked from commit caec631344
)
* Move nonced tx helpers to SDK
(cherry picked from commit 65b868f4eb
)
* Move remaining nonce utils from runtime to SDK
(cherry picked from commit 3c7b9c2938
)
# Conflicts:
# runtime/src/bank.rs
* Fix conflict
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-01 06:25:25 +00:00
387ecdf70e
Add ci env to travis config ( #12608 ) ( #12610 )
...
Co-authored-by: publish-docs.sh <maintainers@solana.com >
(cherry picked from commit a17907b9a2
)
Co-authored-by: Dan Albert <dan@solana.com >
2020-10-01 06:03:57 +00:00
fbe5a89e74
retains hash value of outdated responses received from pull requests ( #12513 ) ( #12603 )
...
pull_response_fail_inserts has been increasing:
https://cdn.discordapp.com/attachments/478692221441409024/759096187587657778/pull_response_fail_insert.png
but for outdated values which fail to insert:
https://github.com/solana-labs/solana/blob/a5c3fc14b3/core/src/crds_gossip_pull.rs#L332-L344
https://github.com/solana-labs/solana/blob/a5c3fc14b3/core/src/crds.rs#L104-L108
are not recorded anywhere, and so the next pull request may obtain the
same redundant payload again, unnecessary taking bandwidth.
This commit holds on to the hashes of failed-inserts for a while, similar
to purged_values:
https://github.com/solana-labs/solana/blob/a5c3fc14b3/core/src/crds_gossip_pull.rs#L380
and filter them out for the next pull request:
https://github.com/solana-labs/solana/blob/a5c3fc14b3/core/src/crds_gossip_pull.rs#L204
(cherry picked from commit 1866521df6
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-01 01:47:20 +00:00
afbdcf3068
Include post balance information for rewards ( #12598 ) ( #12602 )
...
* Include post balance information for rewards
* Add post-balance to stored Reward struct
* Handle extended Reward in bigtable
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit c31a34fbcb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-01 01:05:37 +00:00
2d1b995006
Use protobufs to store confirmed blocks in BigTable ( #12526 ) ( #12597 )
...
* Use protobufs to store confirmed blocks in BigTable
* Cleanup
* Reorganize proto
* Clean up use statements
* Split out function for unit testing
* s/utils/convert
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit ce598c5c98
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-09-30 19:37:02 +00:00
d9d3a95a72
Fix TransactionStatusMeta breakage in blockstore ( #12587 ) ( #12596 )
...
* Add helper to facilitate deserializing legacy structs
* Use default_on_eof to fix blockstore vis-a-vis TransactionStatusMeta
* Add should-panic test and comments
(cherry picked from commit 865d01c38d
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-30 19:18:43 +00:00
ea990fd259
Update devnet genesis hash
2020-09-30 11:37:51 -07:00
4f30f9c8cf
Modernize python scripts ( #12595 )
...
(cherry picked from commit fce3c70b72
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-30 18:24:49 +00:00
d13694d839
Tighten docs publishing flow ( #12572 ) ( #12594 )
...
(cherry picked from commit ede19ef33b
)
Co-authored-by: Dan Albert <dan@solana.com >
2020-09-30 18:23:49 +00:00
700c8c1ec1
epoch_rewards datapoint now includes the correct rewards epoch (previous epoch) ( #12582 )
...
(cherry picked from commit f57af4fec2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-30 06:56:05 +00:00
33ace54b0f
Fix banks RPC port ( #12570 ) ( #12574 )
...
* Fix Banks RPC ports
* Add get_account_with_commitment
(cherry picked from commit d158d45051
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-09-30 01:23:13 +00:00
5d2f450b89
Tune the sys-tuner documentation ( #12576 )
...
(cherry picked from commit 6156dc300d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-30 01:18:24 +00:00