7d66cba7f4
Remove spammy invalid rpc log ( #13100 ) ( #13101 )
...
(cherry picked from commit c95f6c4b83
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-10-23 08:21:33 +00:00
8f615278d2
Add deploy err if program-account balance is too high ( #13091 ) ( #13097 )
...
* Add deploy err if program-account balance is too high
* Review comments
* Add system-program check
* Rename and unhide flag
(cherry picked from commit 4669fa0f98
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-23 05:50:21 +00:00
884d68ddcf
Add Pubkey::new_unique()/Hash::new_unique()
2020-10-23 03:19:38 +00:00
b095a52027
Add programming-faq to sidebar ( #12586 ) ( #13087 )
...
* Add programming-faq to sidebar
* nudge
* fix path
(cherry picked from commit 22d16c69b7
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-22 12:34:22 +00:00
1f5861e107
Add programming faq ( #12545 ) ( #13086 )
...
* Add programming faq
* feedback and new content
* nudge
(cherry picked from commit b51c0f3095
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-22 12:33:29 +00:00
b90b46fee1
Allow nodes to advertise a different rpc address over gossip ( #13053 ) ( #13077 )
...
* Allow nodes to advertise a different rpc address over gossip
* Feedback
(cherry picked from commit 8b0242a5d8
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-10-22 04:44:41 +00:00
bff820d549
Remove unused pubkey::Pubkey imports
2020-10-21 20:27:57 -07:00
5ad0ccdfe1
cargo fmt
2020-10-21 20:27:57 -07:00
d8c7d06737
Run codemod --extensions rs Hash::new_rand solana_sdk:
#️⃣ :new_rand
2020-10-21 20:27:57 -07:00
422bb3c526
Run codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand
2020-10-21 20:27:57 -07:00
048a2b982c
Add pubkey_new_rand(), mark Pubkey::new_rand() deprecated
2020-10-21 20:27:57 -07:00
76f0557462
Add hash_new_rand(), mark Hash::new_rand() as deprecated
2020-10-21 20:27:57 -07:00
6ebb933302
Bump version to 1.3.20
2020-10-22 00:08:28 +00:00
15a49d7508
RPC: Don't send base64 TXs to old clusters ( #13062 )
...
Co-authored-by: Trent Nelson <trent@solana.com >
v1.3.19
2020-10-21 21:07:08 +00:00
a86a781fd5
CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure (bp #13046 ) ( #13054 )
...
* CLI: Print address ephemeral keypair seed phrase to stderr on deploy failure
(cherry picked from commit 2905ccc7ec
)
# Conflicts:
# cli/Cargo.toml
# cli/src/cli.rs
* Fix conflicts
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-10-21 21:03:00 +00:00
57d8d0ab6e
Add ledger-tool dead-slots and improve purge a lot ( #13070 )
2020-10-21 18:38:37 +00:00
63fe350900
Port various rent fixes to runtime feature (bp #12842 ) ( #13067 )
...
* Port various rent fixes to runtime feature (#12842 )
* Port various rent fixes to runtime feature
* Fix CI
* Use more consistent naming...
(cherry picked from commit 608b81b412
)
# Conflicts:
# runtime/src/bank.rs
* Fix conflict
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 14:47:59 +00:00
b384ce9e03
Skip 'Stake by Feature Set' output when showing status of a single feature ( #13051 )
...
(cherry picked from commit ad65d4785e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-21 07:01:20 +00:00
d81d4ad8a1
Improve vote-account "Recent Timestamp" output ( #12970 )
...
(cherry picked from commit 2cc3d7511a
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-21 05:09:58 +00:00
9ed1d2337b
Parse stake and system instructions (bp #13035 ) ( #13044 )
...
* Parse stake and system instructions (#13035 )
* Fix token account check
* Add helper to check num accounts
* Add parse_stake
* Add parse_system
* Fix AuthorizeNonce docs
* Remove jsonParsed unstable markers
* Clippy
(cherry picked from commit 46d0019955
)
* Fix for older clippy
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-10-21 04:20:02 +00:00
14aaae3485
Support Debug Bank ( #13017 ) ( #13042 )
...
(cherry picked from commit c0675968b1
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 02:50:12 +00:00
caac786a38
validator: Activate RPC before halting on slot ( #13001 )
...
(cherry picked from commit 3b3f7341fa
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-20 23:50:11 +00:00
218a76ed1b
Force unset CARGO to use correct version of cargo ( #13027 ) ( #13033 )
...
(cherry picked from commit 81d0c8ae7f
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2020-10-20 22:52:06 +00:00
964f05afa8
Fix secp256k1 instruction indexing and add tests ( #13026 ) ( #13031 )
...
(cherry picked from commit 83c53ae4b5
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-20 22:24:20 +00:00
a0e2f49263
Remove unsupported metrics tarball from release artifacts
...
(cherry picked from commit 62f20bc170
)
2020-10-20 13:14:46 -07:00
25078d46ba
filters out inactive nodes from push options ( #12674 ) ( #13022 )
...
* filters out inactive nodes from push options
https://github.com/solana-labs/solana/pull/12620
patched the DDOS issue with nodes which go offline:
https://github.com/solana-labs/solana/issues/12409
However, offline nodes still see (much lesser) traffic spike, likely
because no origins are pruned from their bloom filter in active set:
https://github.com/solana-labs/solana/blob/aaf3790d8/core/src/crds_gossip_push.rs#L276-L286
and so multiple nodes push redundant duplicate messages to them
simultaneously:
https://github.com/solana-labs/solana/blob/aaf3790d8/core/src/crds_gossip_push.rs#L254-L255
This commit will filter out inactive peers from potential push targets
entirely. To mitigate eclipse attacks, staked nodes are retried
periodically.
* uses current timestamp in test/crds_gossip
(cherry picked from commit a5c6a78f6d
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-20 19:44:52 +00:00
840ea326db
Remove errant print
2020-10-20 08:58:54 -06:00
b9fc31ec95
Parse bpf loader instructions ( #12998 ) ( #13004 )
...
* Add parsing for BpfLoader2 instructions
* Skip info if null
* Return account address in info map
(cherry picked from commit 942e4273ba
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-20 06:21:47 +00:00
9481ee79a8
Ignore more paths in increment-cargo-version.sh ( #12996 )
...
(cherry picked from commit c1c69ecc34
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-19 23:57:11 +00:00
dddd0b76f1
removes invalid/outdated pending push messages early ( #12555 ) ( #12992 )
...
In CrdsGossipPush::new_push_messages:
https://github.com/solana-labs/solana/blob/972619edb/core/src/crds_gossip_push.rs#L211-L228
we already have paid the cost of looking-up the label in crds table and
checking the hash value and wallclock only to find out that in some
cases the value is invalid or is outdated. So might as well remove the
value here rather than wait for the next call to
purge_old_pending_push_messages:
https://github.com/solana-labs/solana/blob/972619edb/core/src/crds_gossip_push.rs#L372
(cherry picked from commit b5faa11f73
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-19 22:02:18 +00:00
7674a5fea8
Bump version to v1.3.19 ( #12986 )
2020-10-19 19:13:28 +00:00
78be777b65
Revert "CLI: Put deploy
ephemeral keypair behind a flag ( #12941 )" ( #12981 )
...
This reverts commit c2806aa2f9
.
v1.3.18
2020-10-19 17:31:33 +00:00
9b5c10a6aa
Mention monitoring and updating for exchanges ( #12953 ) ( #12960 )
...
* Mention monitoring and updating for exchanges
* Fix link syntax...
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* More review comments and word-wrapping
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 87311cce7f
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-17 09:50:51 +00:00
8714c14549
keygen: add more mnemonic language support ( #12944 ) ( #12956 )
...
(cherry picked from commit 4451042c76
)
Co-authored-by: guanqun <guanqun.lu@gmail.com >
2020-10-17 04:01:22 +00:00
1982a7a8e3
Check payer balance for program account rent as needed ( #12952 ) ( #12954 )
...
(cherry picked from commit b6bfed64cb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-16 19:11:13 +00:00
c2806aa2f9
CLI: Put deploy
ephemeral keypair behind a flag ( #12941 )
...
(cherry picked from commit 5a5b7f39c1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-16 06:09:40 +00:00
e6521ef44c
Report compute budget usage ( #12931 ) ( #12933 )
...
(cherry picked from commit b510474dcb
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-16 00:19:18 +00:00
03ab8fac29
Update get-block method in get_confirmed_transaction ( #12923 ) ( #12929 )
...
* Update get-block method in get_confirmed_transaction
* Remove superfluous into()
(cherry picked from commit 42943ab86d
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-15 21:33:38 +00:00
644304d171
Support arbitrary toolchains with cargo wrapper script ( #12925 )
...
(cherry picked from commit 99aecdaf65
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-15 20:15:29 +00:00
782ed192b6
program log pubkey as base58 (bp #12901 ) ( #12910 )
...
* program log pubkey as base58 (#12901 )
(cherry picked from commit 3f9e6a600b
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
# programs/bpf/c/src/tuner/tuner.c
# programs/bpf_loader/src/syscalls.rs
# runtime/src/process_instruction.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-15 19:21:27 +00:00
0da2f73eb4
Release: Use pinned cargo version to install spl-token-cli ( #12915 )
...
(cherry picked from commit bb2f0df9e1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-15 17:55:15 +00:00
a3fdfea674
RPC: Add metrics for TX encoding ( #12879 )
...
(cherry picked from commit c26512255d
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-15 15:41:13 +00:00
43121a56eb
Surface 'Program account allocation failed' error details ( #12902 )
...
(cherry picked from commit eec3d25ab9
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-15 10:25:26 +00:00
2c0b4f3b4f
Respect RefCell when calling invoke ( #12858 ) ( #12890 )
...
* Respect RefCell when calling invoke
* nudge
(cherry picked from commit 969f7b015b
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-15 02:24:51 +00:00
db30316bb3
Release: Include SPL Token in release tarballs ( #12888 )
...
(cherry picked from commit f70762913c
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-10-15 01:32:29 +00:00
73e4d9d623
Don't report RewardType::Fee when none was awarded ( #12876 )
...
(cherry picked from commit 4b04ed86b6
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-14 17:36:17 +00:00
46b864dcb0
Expose program error constants ( #12861 ) ( #12870 )
...
(cherry picked from commit d4e953277e
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-14 08:48:45 +00:00
4f2e60fea4
Add nop feature set for upcoming ported rent fixes (bp #12841 ) ( #12846 )
...
* Add nop feature set for upcoming ported rent fixes (#12841 )
(cherry picked from commit 7de7efe96c
)
# Conflicts:
# runtime/src/feature_set.rs
* Update feature_set.rs
* Add missing comma...
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-14 04:47:07 +00:00
7ce9beacb6
Add log_messages to proto file ( #12859 ) ( #12862 )
...
(cherry picked from commit 67ed44c007
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-14 01:37:42 +00:00
9dab79274b
terminology update, nonce to bump seed (bp #12840 ) ( #12850 )
...
* terminology update, nonce to bump seed (#12840 )
(cherry picked from commit 56211378d3
)
# Conflicts:
# sdk/src/pubkey.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-13 19:24:30 +00:00