5057aaddc0
Send votes to next leader's TPU instead of our TPU ( #16663 )
...
(cherry picked from commit c8b474cd0b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-20 08:45:58 +00:00
3865219085
Remove unwrap ( #16652 ) ( #16657 )
...
(cherry picked from commit 01786f684e
)
Co-authored-by: Jack May <jack@solana.com >
2021-04-20 04:45:37 +00:00
6da06654ff
Wrap derivation_path::DerivationPath (backport #16609 ) ( #16651 )
...
* Wrap derivation_path::DerivationPath (#16609 )
* Replace custom DerivationPath impl
* Add method to parse full-path from str with hardening
* Convert Bip44 to trait
* Hoist more work on derivation-path
* Privatize Bip44 trait
(cherry picked from commit 185bbf2db5
)
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-20 00:50:16 +00:00
4a375acebc
Add --sort argument to solana validators
(backport #16640 ) ( #16655 )
...
* Add --sort argument to `solana validators`
(cherry picked from commit b66faf7e80
)
* Add line numbers to `solana validators` output
(cherry picked from commit 818c3198c1
)
* Print the header as a footer when there's a large number of validators to show
(cherry picked from commit 1824b5a2ce
)
* Add --number argument
(cherry picked from commit f14cf3ed1a
)
* Prefix current validators with nbsp for easier sed-ing
(cherry picked from commit 568438aa6f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-20 00:42:19 +00:00
9fcd465928
solana validators
: Restore the meaning of "credits" in the JSON output (#16647 )
...
(cherry picked from commit 1b63bdaf44
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-19 21:08:12 +00:00
1f8ef5e640
solana validators
now shows current epoch credits instead of lifetime credits (#16639 )
...
(cherry picked from commit f5f06904c3
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-19 18:52:27 +00:00
a1b0f2f681
Increase test timeout
2021-04-19 04:12:16 +00:00
f59d4f29d9
clippy
2021-04-19 04:12:16 +00:00
b379004c3b
Upgrade to Rust 1.51.0
2021-04-19 04:12:16 +00:00
25491780df
Remove unnecessary clone ( #16621 )
...
(cherry picked from commit 6907a2366e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-17 18:31:18 +00:00
4354ad3299
Documentation typo for langauge ( #16620 )
...
(cherry picked from commit 5399faaf53
)
Co-authored-by: Guillaume Claret <dev@clarus.me >
2021-04-17 15:20:54 +00:00
4e94446fc3
Bump version to v1.6.7
2021-04-16 23:31:30 +00:00
d99795c000
Move derivation path into sdk ( #16603 ) ( #16607 )
...
* Move DerivationPath to sdk
* Remove eprintln
(cherry picked from commit 52f4b96a80
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-16 23:23:14 +00:00
fe775a9716
CLI BIP32 prep: KeypairUrl
refactor (backport #16592 ) ( #16605 )
...
* clap-utils: Rename KeypairUrl to SignerSource
(cherry picked from commit 09dcc9ea04
)
* clap-utils: Reduce SignerSource's visibility
(cherry picked from commit c5ab3ba6f1
)
* clap-utils: Use `uriparse` crate to parse `SignerSource`
(cherry picked from commit 5d1ef5d01d
)
* clap-utils: Add explicit schemes for `ask` and `file` `SignerSource`s
(cherry picked from commit 6444f0e57b
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.6.6
2021-04-16 21:14:31 +00:00
ac76a75937
Feature-gate hash-based duplicate transaction check ( #16601 )
...
(cherry picked from commit 285f3c9d56
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-16 19:59:55 +00:00
6c1678244f
docs: Fix typo in program deploy instructions ( #16572 ) ( #16575 )
...
(cherry picked from commit c8ed14c647
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-16 05:58:31 +00:00
63a9f33be1
Don't parse uninitialized system/nonce accounts ( #16584 ) ( #16587 )
...
(cherry picked from commit ba77e48c12
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-15 23:39:16 +00:00
c9da91cb1c
Rotate CODECOV_TOKEN ( #16579 )
...
(cherry picked from commit a535c0e129
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-15 16:15:20 +00:00
b3488e0139
Cli: move airdrop to rpc requests ( #16557 ) ( #16564 )
...
* Add recent_blockhash to requestAirdrop
* Move tx confirmation to separate method
* Add RpcClient airdrop methods
* Request cli airdrop via RpcClient
* Pass optional faucet_addr into TestValidator and fix tests
* Update client/src/rpc_client.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 7dfb51c0b4
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-15 07:35:19 +00:00
f3814a0478
docs: freshen and clarify rent-exempt dev description ( #16562 )
...
(cherry picked from commit 76ce28c723
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-15 04:35:08 +00:00
5e8d8cfb49
fix transaction spelling ( #16558 ) ( #16559 )
...
(cherry picked from commit 1f29031b9d
)
Co-authored-by: strykerin <dacosta.pereirafabio@gmail.com >
2021-04-15 02:24:26 +00:00
ad37276d83
dl-utils: use wide_msg
everywhere for truncation on narrow terminals ( #16555 )
...
(cherry picked from commit e61b4b7d70
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-15 01:01:55 +00:00
719db7eed0
uses timeouts based on stake for filtering pull responses ( #16549 ) ( #16551 )
...
filter_pull_responses is using default timeout when discarding pull
responses (except for ContactInfo):
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/crds_gossip_pull.rs#L349-L350
But purging code uses timeouts based on stake:
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/cluster_info.rs#L1867-L1870
So the crds value will not be purged from the sender's table and will be
sent again over the next pull request.
(cherry picked from commit d92721aab9
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-04-14 21:43:48 +00:00
4ddb72a32d
prioritizes contact-infos in pull responses ( #16541 ) ( #16550 )
...
Expired crds values where the contact-info does not exist are wasted:
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/crds_gossip_pull.rs#L353-L378
and then are sent again over the next pull-request.
Also, the stake of the first response (which can be anything) is used to
weight all pull-responses to a node, while the rest of responses can
have different stake.
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/cluster_info.rs#L2231
(cherry picked from commit f35a6a8be0
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-04-14 20:14:22 +00:00
ff1171338f
Fix channel panic in tests ( #16503 ) ( #16543 )
...
* Fix channel panic
* Add exit signal to PohRecorder because Crossbeam doesnt drop objects inside dropped channel
(cherry picked from commit f0c150cfb9
)
Co-authored-by: carllin <carl@solana.com >
2021-04-14 19:04:31 +00:00
28683b0ad8
Fix sanity test flakiness by prebuilding binaries ( #16530 ) ( #16547 )
...
* Fix sanity test flakiness by prebuilding binaries
* ignore shellcheck
* bump
* nudge
* simplify
(cherry picked from commit 328e7690f3
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-14 18:52:15 +00:00
4ef3a679a4
Bump version to v1.6.6
2021-04-14 10:27:02 -07:00
e02bcbdae2
Other hostname changes
...
(cherry picked from commit eddfe06a00
)
v1.6.5
2021-04-14 10:08:29 -07:00
7b0187a148
Correct gossip hostname
...
(cherry picked from commit d684ec00aa
)
2021-04-14 10:08:29 -07:00
e92283c8d2
Add --faucet-port option
...
(cherry picked from commit f804ce63c2
)
2021-04-14 09:39:27 -07:00
ef3781d4ee
fix cross-merge ( #16535 )
2021-04-14 10:16:24 +00:00
6da4bec41d
Return sysvars via syscalls (bp #16422 ) ( #16497 )
...
* Return sysvars via syscalls (#16422 )
(cherry picked from commit fa83f3bd73
)
* bad merge
* Fix branch diffs
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-04-14 05:33:27 +00:00
31ed985fd0
RpcClient no longer panics in a tokio multi-threaded runtime ( #16393 )
...
(cherry picked from commit a4f0d8636a
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-14 03:17:33 +00:00
cdc10712b1
Bump scripts to current commitment variants ( #16526 ) ( #16527 )
...
(cherry picked from commit 3bfae8e829
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-14 01:51:56 +00:00
935a836a7d
bump solana_rbpf from 0.2.5 to 0.2.7 (backport #16515 ) ( #16525 )
...
* bump solana_rbpf from 0.2.5 to 0.2.7 (#16515 )
(cherry picked from commit f7eadd9d70
)
# Conflicts:
# cli/Cargo.toml
# programs/bpf/Cargo.toml
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/syscalls.rs
* Fix conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Jack May <jack@solana.com >
2021-04-13 23:53:48 +00:00
97ba3cbeb0
Cleanup unsupported sysvars (backport #16390 ) ( #16517 )
...
* Cleanup unsupported sysvars (#16390 )
* Cleanup unsupported sysvars
* fix ser description
(cherry picked from commit 92f4018b07
)
# Conflicts:
# runtime/src/bank.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-04-13 23:28:08 +00:00
e8ca35f9ec
Deprecate RpcClient methods, RpcRequest variants ( #16516 ) ( #16519 )
...
* Deprecate RpcClient methods, RpcRequest variants
* Update cli to getSupply
(cherry picked from commit ccb11a939f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-13 22:23:39 +00:00
d5aae9a8af
Derive PartialEq for RpcStakeActivation
2021-04-13 12:33:46 -07:00
3bb8016a40
Remove blake3 from bpf program dependencies ( #16506 ) ( #16509 )
...
(cherry picked from commit f641429056
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-13 11:18:26 +00:00
579065443a
v1.6: Use blake3 message hash in status cache ( #16507 )
2021-04-13 16:57:20 +08:00
81d636c2bf
Merge pull request from GHSA-fmvj-vqp5-qqh9
...
* Sanitize permissions
* Forbid creating directories under ledger/rocksdb/
* hardened_unpack: Disallow dirs under rocksdb/ in genesis
* hardened_unpack: expand valid genesis entry test coverage
* hardened_unpack: rework old-style bsd directory entry rejection
Co-authored-by: Ivan Mironov <mironov.ivan@gmail.com >
2021-04-12 23:56:37 -06:00
6a7ce8500b
canonicalize authorized voter filepath
...
(cherry picked from commit 05ad979a2d
)
2021-04-12 20:01:56 -07:00
8ee294639a
validator: Add authorized-voter add/remove-all commands (bp #16492 ) ( #16496 )
...
* Clean up build warning
(cherry picked from commit 17a173ebb5
)
* Add authorized-voter add/remove-all commands
(cherry picked from commit 2229b70c4e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-13 00:07:06 +00:00
b275f65ef1
Add address_cache and exclude loopback from ip limit ( #16491 )
2021-04-12 20:31:30 +00:00
37c2b68677
poll checking for new record in poh service after every batch of hashes instead of busy waiting ( #16167 ) ( #16486 )
...
* poll waiting in poh service after every batch of hashes
* clippy
(cherry picked from commit 414c7070cb
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-04-12 19:07:23 +00:00
d9944c8ae3
TransactionRecorder uses unique channel so we can use Recv instead of RecvTimeout ( #16195 ) ( #16485 )
...
* time
* new channel each call
* new channel every time
(cherry picked from commit 5eff23db0c
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-04-12 18:56:22 +00:00
6c8bbdca0a
Allow fork choice to support multiple versions of a slot ( #16266 ) ( #16480 )
...
(cherry picked from commit dc7030ffaa
)
Co-authored-by: carllin <carl@solana.com >
2021-04-12 09:14:02 +00:00
10e8f3ab32
Fix up App formatting
...
(cherry picked from commit ef30943c5c
)
2021-04-11 23:36:31 -07:00
8c0b0f235e
docker: Expose all ports in Dockerfile, add back localnet.sh ( #16401 ) ( #16474 )
...
* docker: Expose all ports in Dockerfile, add back localnet.sh
* Add documentation for where to find containers
* Obliterate script
(cherry picked from commit 448d5be79f
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-04-11 20:17:08 +00:00
ec8ba76e4d
Fix account copy step in program test message processor ( #16469 ) ( #16472 )
...
(cherry picked from commit 278c125d99
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-11 20:31:22 +08:00