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
55b0e9e9c7
builds crds filters in parallel (bp #12360 ) ( #12571 )
...
* builds crds filters in parallel (#12360 )
Based on run-time profiles, the majority time of new_pull_requests is
spent building bloom filters, in hashing and bit-vec ops.
This commit builds crds filters in parallel using rayon constructs. The
added benchmark shows ~5x speedup (4-core machine, 8 threads).
(cherry picked from commit 537bbde22e
)
# Conflicts:
# core/Cargo.toml
* resolves mergify merge conflict
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-09-30 01:08:16 +00:00
6d1bea7fb4
Include active stake in 'epoch_rewards' datapoint ( #12573 )
...
(cherry picked from commit 82848d6c73
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-30 01:08:04 +00:00
d19ed8816e
Query BigTable for block time if does not exist in blockstore ( #12560 ) ( #12565 )
...
(cherry picked from commit 96a7d4dbd8
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-29 23:26:03 +00:00
af7f48a2fd
Track inserted repair shreds ( #12455 ) ( #12563 )
...
(cherry picked from commit ce98088457
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-09-29 22:57:58 +00:00
0965389f41
Enable json output from solana feature status ( #12554 ) ( #12559 )
2020-09-29 21:00:20 +00:00
24c60cf3db
Bump version to v1.3.15
2020-09-29 20:57:08 +00:00
c8f4bfca90
Notify but don't abort on unexpected stake account balance
v1.3.14
2020-09-29 11:39:11 -07:00
4a6b65ce53
Switch get_program_accounts to use base64
2020-09-29 18:21:19 +00:00
836ed842d6
Increase rpc pubsub max payload to unblock large account notifications ( #12548 ) ( #12551 )
...
(cherry picked from commit 36d55c0667
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-09-29 17:20:31 +00:00
966d0f72bb
Move process_instruction defs to runtime ( #12507 ) ( #12549 )
...
(cherry picked from commit 2ff983647f
)
Co-authored-by: Jack May <jack@solana.com >
2020-09-29 15:52:38 +00:00
a07e90516b
separates out ClusterInfo::{gossip,listen} thread-pools ( #12535 ) ( #12547 )
...
https://github.com/solana-labs/solana/pull/12402
moved gossip-work threads:
https://github.com/solana-labs/solana/blob/afd9bfc45/core/src/cluster_info.rs#L2330-L2334
to ClusterInfo::new as a new field in the ClusterInfo struct:
https://github.com/solana-labs/solana/blob/35208c5ee/core/src/cluster_info.rs#L249
So that they can be shared between listen and gossip threads:
https://github.com/solana-labs/solana/blob/afd9bfc45/core/src/gossip_service.rs#L54-L67
However, in testing https://github.com/solana-labs/solana/pull/12360
it turned out this will cause breakage:
https://buildkite.com/solana-labs/solana/builds/31646
https://buildkite.com/solana-labs/solana/builds/31651
https://buildkite.com/solana-labs/solana/builds/31655
Whereas with separate thread pools all is good. It might be the case
that one thread is slowing down the other by exhausting the thread-pool
whereas with separate thread-pools we get fair scheduling guarantees
from the os.
This commit reverts https://github.com/solana-labs/solana/pull/12402
and instead adds separate thread-pools for listen and gossip threads:
https://github.com/solana-labs/solana/blob/afd9bfc45/core/src/gossip_service.rs#L54-L67
(cherry picked from commit 0d5258b6d3
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-09-29 11:27:47 +00:00
bd2e09d55a
patches bug in Crds::find_old_labels with pubkey specific timeout ( #12528 ) ( #12546 )
...
Current code only returns values which are expired based on the default
timeout. Example from the added unit test:
- value inserted at time 0
- pubkey specific timeout = 1
- default timeout = 3
Then at now = 2, the value is expired, but the function fails to return
the value because it compares with the default timeout.
(cherry picked from commit 57ed4e4657
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-09-29 10:13:13 +00:00
655577f9fe
feature subcommand: display active stake by feature id when feature activation is not available ( #12543 )
...
(cherry picked from commit 322dbd894f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-29 06:17:31 +00:00