03b213e296
Add block time placeholder to getConfirmedBlock ( #10990 )
...
(cherry picked from commit 491f5ae61a
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-07-10 11:02:27 -07:00
1bfce24c9f
Fix skipped slot detection for eager rent collect ( #10890 ) ( #10978 )
...
(cherry picked from commit f1c1152948
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-07-10 11:59:44 +09:00
94b2565969
Fix nonce fee_calculator overwrite ( #10973 ) ( #10976 )
...
* Add failing test
* Pass fee_calculator to prepare_if_nonce_account; only overwrite in error case
(cherry picked from commit 25228ca957
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-07-09 16:57:34 -06:00
2896fdb603
Update version to v1.2.11 ( #10966 )
2020-07-09 06:48:30 -07:00
50970bc8f9
Update version to v1.2.10 ( #10962 )
v1.2.10
2020-07-08 15:34:19 -07:00
10df45b173
update testnet docs ( #10954 ) ( #10955 )
...
(cherry picked from commit e50227745d
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-07-08 04:08:16 +00:00
d3b8129593
Clean accounts path on validator startup ( #10929 ) ( #10944 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2020-07-07 18:27:49 +00:00
f7fb5aebac
v1.2 instruction and account decoding backports ( #10939 )
...
* Revert "Rpc: add filter to getProgramAccounts (#10888 ) (#10932 )"
This reverts commit 9311a6e356
.
* Add jsonParsed option for EncodedTransactions; add memo parser (#10711 )
* Add jsonParsed option for EncodedTransactions; add memo parser
* Use kebab case for program names
* Add account-key parsing
* Add parse test
* Update transaction encoding docs (#10833 )
* Add account-decoder utilities (#10846 )
* Fix comment and make less pub
* Add account-decoder crate and use to decode vote and system (nonce) accounts
* Update docs
* Rename RpcAccount struct
* s/Rpc/Display
* Call it jsonParsed and update docs
* Revert "s/Rpc/Display"
This reverts commit 6e7149f503
.
* s/Rpc/Ui
* Add tests
* Ui more things
* Comments
* Update struct prefixes to Ui (#10874 )
* Update comments
* Use Ui prefix
* Rpc: add filter to getProgramAccounts (#10888 )
* Add RpcFilterType, and implement CompareBytes for getProgramAccounts
* Accept bytes in bs58
* Rename to memcmp
* Add Memcmp optional encoding field
* Add dataSize filter
* Update docs
* Clippy
* Simplify tests that don't need to test account contents; add multiple-filter tests
2020-07-07 09:35:35 -06:00
9311a6e356
Rpc: add filter to getProgramAccounts ( #10888 ) ( #10932 )
...
* Add RpcFilterType, and implement CompareBytes for getProgramAccounts
* Accept bytes in bs58
* Rename to memcmp
* Add Memcmp optional encoding field
* Add dataSize filter
* Update docs
* Clippy
* Simplify tests that don't need to test account contents; add multiple-filter tests
2020-07-06 21:45:12 +00:00
8c706892df
Rpc: Add getStakeActivation endpoint (bp #10902 ) ( #10930 )
...
* Rpc: Add getStakeActivation endpoint (#10902 )
* Add getStakeActivation endpoint
* Add docs
* Update docs/src/apps/jsonrpc-api.md
Co-authored-by: Michael Vines <mvines@gmail.com >
* Rework return type
* Update docs
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 4de0713aa3
)
* Fix build
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-06 21:23:27 +00:00
7f2b11756c
Fix parsing ( #10924 ) ( #10926 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 823126b372
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-06 11:05:17 +00:00
f324547600
Skip and warn for hard-forks which are less than the start slot ( #10918 ) ( #10920 )
...
* Skip and warn for hard-forks which are less than the start slot
Option is used during a restart, but then after the restart is
complete, then the option is not needed if the starting slot
is past the hard-fork since the hard-fork should already be
in the snapshot it started from.
* Update ledger/src/blockstore_processor.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 658de5b347
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-07-05 22:15:26 +00:00
36e8977f1d
Repair timing ( #10913 ) ( #10917 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 28e15a63e5
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-04 03:48:29 +00:00
b88db2689e
Add breakdown of erasure blobs ( #10912 ) ( #10915 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit f014c94369
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-04 02:15:03 +00:00
1584ec220c
Move clean accounts to background service ( #10904 )
v1.2.9
2020-07-02 22:39:22 -07:00
fb366a7236
Add weighted traversal ( #10877 ) ( #10901 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit f17ac70bb2
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-02 23:52:03 +00:00
b903158543
getInflationRate now only supports the current epoch ( #10887 )
...
(cherry picked from commit d53228e69d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-07-02 03:36:47 +00:00
9dad9c6333
Prevent stub inclusion when building shared objects (bp #10875 ) ( #10879 )
...
* Prevent stub inclusion when building shared objects (#10875 )
(cherry picked from commit 52526a9bc2
)
# Conflicts:
# programs/bpf/rust/128bit/src/lib.rs
# programs/bpf/rust/alloc/src/lib.rs
# programs/bpf/rust/dep_crate/src/lib.rs
# programs/bpf/rust/invoke/src/lib.rs
# programs/bpf/rust/invoked/src/lib.rs
# programs/bpf/rust/iter/src/lib.rs
# programs/bpf/rust/many_args/src/lib.rs
# programs/bpf/rust/many_args_dep/src/lib.rs
# programs/bpf/rust/noop/src/lib.rs
# programs/bpf/rust/param_passing/src/lib.rs
# programs/bpf/rust/param_passing_dep/src/lib.rs
# sdk/bpf/rust/test/src/lib.rs
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-07-01 22:47:17 +00:00
a6658b9d75
Add ability to parse logs in ledger-tool ( #10840 ) ( #10849 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 2dfa48daf9
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-01 20:30:48 +00:00
a97feedcc1
Pull program stubs into SDK (bp #10704 ) ( #10713 )
...
* Pull program stubs into SDK (#10704 )
(cherry picked from commit d77818c18b
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/128bit/Cargo.toml
# programs/bpf/rust/128bit_dep/Cargo.toml
# programs/bpf/rust/alloc/Cargo.toml
# programs/bpf/rust/dep_crate/Cargo.toml
# programs/bpf/rust/dup_accounts/Cargo.toml
# programs/bpf/rust/error_handling/Cargo.toml
# programs/bpf/rust/external_spend/Cargo.toml
# programs/bpf/rust/invoke/Cargo.toml
# programs/bpf/rust/invoked/Cargo.toml
# programs/bpf/rust/iter/Cargo.toml
# programs/bpf/rust/many_args/Cargo.toml
# programs/bpf/rust/many_args_dep/Cargo.toml
# programs/bpf/rust/noop/Cargo.toml
# programs/bpf/rust/panic/Cargo.toml
# programs/bpf/rust/param_passing/Cargo.toml
# programs/bpf/rust/param_passing_dep/Cargo.toml
# programs/bpf/rust/sysval/Cargo.toml
# sdk/bpf/rust/test/Cargo.toml
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-07-01 20:17:37 +00:00
8021bce41f
Instructions for validator logging ( #10845 ) ( #10878 )
...
* Instructions for disabling log throttling
* Remove syslog, add logrotate
* Update docs/src/running-validator/validator-start.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Carl <carl@solana.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 6b45481bbb
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-01 20:03:27 +00:00
d8fa19336c
Add heaviest subtree utility functions ( #10863 ) ( #10865 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 7a71580d53
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-07-01 11:21:22 +00:00
191483cf9f
Update cargo.* version to 1.2.9 ( #10861 )
2020-06-30 23:21:10 +00:00
1eb8314d42
Update expected shred version for testnet. ( #10858 ) ( #10859 )
...
(cherry picked from commit 5adf6f6bde
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-30 21:02:58 +00:00
88eeb817e4
More guard rails for restart with ledger procedure ( #10854 )
...
* Add expected_bank_hash required for supermajority
* Print snapshot hash in ledger-tool create-snapshot.
v1.2.8
2020-06-30 12:55:25 -07:00
b777126bd2
Revert removing -e in cargo-for-all-lock-files
2020-06-30 09:13:03 -07:00
89d78dcfcf
Update cargo.* version to 1.2.8
2020-06-30 09:03:28 -07:00
1cf142c193
Remove outdated todo comment ( #10850 ) ( #10851 )
...
(cherry picked from commit cabedc0f36
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-06-30 15:07:09 +00:00
3e29325410
Fix fork detection ( #10839 ) ( #10844 )
...
* Fix fork detection
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 4b93a7c1f6
)
Co-authored-by: carllin <wumu727@gmail.com >
v1.2.7
2020-06-30 04:16:05 +00:00
4dc98c3dbd
Reduce logging lines ( #10835 ) ( #10841 )
...
(cherry picked from commit d9b389f510
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-30 00:28:58 +00:00
9caad645e2
Remove ledger purge batching ( #10830 ) ( #10836 )
...
(cherry picked from commit 583cec922b
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-29 23:10:45 +00:00
6cb76ac326
More replay stage timing metrics ( #10828 ) ( #10829 )
...
(cherry picked from commit 17a2128a8f
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-28 18:27:35 +00:00
0001e5c0a1
net.sh: Refactor node initialization wait ( #10819 ) ( #10824 )
...
* remote-node.sh: Factor out init wait to own script
* remote-node.sh: Allow nodes to initialize asynchronously
* testnet-automation: Plumb --async-node-init
(cherry picked from commit 7021e1c584
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-06-26 16:28:46 +00:00
ab32d13da1
Add debugging ( #10820 )
...
Co-authored-by: Carl <carl@solana.com >
2020-06-26 08:09:04 +00:00
cefe46e981
Clean up rpc module ( #10812 ) ( #10815 )
...
* Clean up rpc module
* Simplify getting bank
(cherry picked from commit 62b873b054
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-26 01:59:06 +00:00
f4d70e78b6
Add ancestor iterator to lib.rs ( #10813 ) ( #10817 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit 0fde0d7379
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-06-26 01:02:51 +00:00
d130adf582
Dont skip eager rent collect across gapped epochs ( #10206 ) ( #10808 )
...
* Dont skip eager rent collect across gapped epochs
* Adjust style and comment
* Adjust ascii chart and comment a bit
* Moar assert
* Relax the partition_count assert for completeness
* Tweak comment...
* tweak a bit
* Add gating logic
* Address reviews
* small formatting
* Clarify the code by replacing auto_generated...
* small formatting
* small formatting
* small formatting
* small formatting
* Narrow down conditional compilation scope
(cherry picked from commit 50f7ed80c8
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-06-25 15:34:04 +00:00
1e6285e64e
Fix leaf propagation in case of no votes in HeaviestForkChoice ( #10807 )
...
* Fix leaf propagation logic
Co-authored-by: Carl <carl@solana.com >
2020-06-25 04:05:26 -07:00
e3c90c3807
Add non-circulating withdraw authority ( #10798 ) ( #10804 )
...
Co-authored-by: publish-docs.sh <maintainers@solana.com >
(cherry picked from commit b3e382ab3f
)
Co-authored-by: Dan Albert <dan@solana.com >
2020-06-25 06:15:24 +00:00
85750307aa
Rename Client methods to match proposed BanksClient (bp #10793 ) ( #10800 )
...
* Rename Client methods to match proposed BanksClient (#10793 )
(cherry picked from commit 7ade330b23
)
# Conflicts:
# programs/bpf/tests/programs.rs
# runtime/benches/bank.rs
* Fix merge
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-25 05:33:12 +00:00
0ee4a5e799
Fix race in ci/run-sanity.sh ( #10796 ) ( #10802 )
...
(cherry picked from commit 4dc9f378b8
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-06-25 04:54:54 +00:00
55cb9cf681
Use cargo tree
to bump release branch lock files ( #10790 ) ( #10792 )
...
(cherry picked from commit 48b846203e
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-06-25 03:04:10 +00:00
d3af7e0653
Fix broken image link ( #10496 ) ( #10795 )
...
automerge
(cherry picked from commit 75b8c2c4e3
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-06-25 01:41:53 +00:00
729a24d557
Fixup stake doc wording ( #10782 ) ( #10784 )
...
Co-authored-by: publish-docs.sh <maintainers@solana.com >
(cherry picked from commit d5d5ad0071
)
Co-authored-by: Dan Albert <dan@solana.com >
2020-06-25 01:25:22 +00:00
55b92c16da
Remove fee-payer guesswork from Message and Transaction (bp #10776 ) ( #10785 )
...
* Remove fee-payer guesswork from Message and Transaction (#10776 )
* Make Message::new_with_payer the default constructor
* Remove Transaction::new_[un]signed_instructions
These guess the fee-payer instead of stating it explicitly
(cherry picked from commit 1c498369b5
)
# Conflicts:
# cli/src/nonce.rs
# core/src/rpc.rs
# ledger/src/blockstore.rs
# programs/bpf/tests/programs.rs
* Fix merge
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-25 01:10:23 +00:00
835bacce4f
Revert some stowaway changes from ccb7b1a
2020-06-24 16:04:28 -06:00
ccb7b1a698
Bump cargo version to v1.2.7
2020-06-24 09:23:12 -07:00
85dbdeb4c3
Add staking guide to docs ( #10609 ) ( #10780 )
...
(cherry picked from commit 0b14ae5725
)
Co-authored-by: Dan Albert <dan@solana.com >
2020-06-24 09:46:42 -06:00
397f9f11c5
Allow for hard fork at last root ( #10762 ) ( #10766 )
...
(cherry picked from commit 0e393a5684
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-06-24 06:10:48 +00:00
a11986ad1d
Make curl verbose when uploading assets to github ( #10757 ) ( #10761 )
...
Debugging silent asset upload failures during release
(cherry picked from commit 3aab13a167
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-06-24 01:35:13 +00:00