sakridge
91a2d03f28
Update version to 1.4.19 ( #14196 )
2020-12-18 00:36:20 +00:00
mergify[bot]
7adcbae866
Add blockstore skipped api ( #14145 ) ( #14166 )
...
* Add blockstore api to determine if a slot was skipped
* Return custom rpc error if slot is skipped
(cherry picked from commit ac0d32bc7e81848ccb85032c09c6d6d5f63a4813)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-16 22:22:41 +00:00
sakridge
82add14782
Bump version to v1.4.18 ( #14144 )
2020-12-16 04:15:05 +00:00
mergify[bot]
599b22baf3
Partial shred deserialize cleanup and shred type differentiation ( #14094 ) ( #14138 )
...
* Partial shred deserialize cleanup and shred type differentiation in retransmit
* consolidate packet hashing logic
(cherry picked from commit d4a174fb7cc2daa80fce11b060d0232e714316a1)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-16 02:25:40 +00:00
Michael Vines
539f108ea6
Bump version to 1.4.17
2020-12-14 15:57:53 -08:00
mergify[bot]
0b5beac561
Check shred type in is_duplicate ( #14050 ) ( #14058 )
...
(cherry picked from commit aa2751e61413a0e6decd201a5d1d5086d024599f)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-11 04:22:25 +00:00
Michael Vines
fb3e88bb7e
Bump version to v1.4.16 ( #14054 )
2020-12-10 17:04:34 -08:00
mergify[bot]
24bd147b1a
Better dupe detection ( #13992 ) ( #14033 )
...
(cherry picked from commit c5fe076432a5cd196a5ac2cdeeaf5b86e3de04a7)
Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-10 08:32:44 +00:00
mergify[bot]
9846a8089e
verifies that serialized size of transactions does not exceed packet data size ( #13945 ) ( #13952 )
...
(cherry picked from commit 4e8565253c2eef74c4bea9c1b9503342a440fd3d)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-12-03 23:47:05 +00:00
mergify[bot]
d96bcc9ead
Blockstore exact purge cleanup ( #13946 ) ( #13948 )
...
* Add failing test
* Clean up signature get
(cherry picked from commit 85aa632be04af226ceb66b839ad386c1eeb93b96)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-03 23:08:05 +00:00
Michael Vines
38d7d7df50
Bump version to v1.4.15
2020-12-03 01:55:39 +00:00
mergify[bot]
da1796f97a
Nonce cleanup followup (bp #13868 ) ( #13922 )
...
* runtime: Factor out `DurableNoncePartial` finishing logic and add tests
(cherry picked from commit 8df2a4bac0954b004556c2fc2e5c6bb7b86d1028)
* accounts: Don't assume fee-payer is the first account
(cherry picked from commit 47af5933caea0e03930e2ed03d18160903a832a7)
* accounts: Replace nonce_rollback unreachable block with descriptive panic
(cherry picked from commit be7760caa1725020290a25023046772c7b5dc733)
* sdk: Check owner when verifying nonce accounts
(cherry picked from commit 274312ebb59ffeac4a8a40f42375c2c6eedb03e7)
* runtime: Replace `HashAgeKind` with `NonceRollbackInfo`
(cherry picked from commit 404fc1570d722709344876dc91799edd576056bf)
* Make `Accounts::is_non_loader_key()` a method on `Message`
(cherry picked from commit 17defbff13fab30210c0b454adb5296f44bd4243)
Co-authored-by: Trent Nelson <trent@solana.com>
2020-12-02 21:34:21 +00:00
mergify[bot]
3559062c00
caches vote-state de-serialized from vote accounts ( #13795 ) ( #13862 )
...
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.
This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.
Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.
(cherry picked from commit e1793e5a13
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-11-30 18:36:23 +00:00
sakridge
cea722ac09
Bump version to v1.4.14 ( #13852 )
2020-11-29 18:20:19 +00:00
Michael Vines
f5eb5a3ba6
Bump version to v1.4.13
2020-11-26 06:59:28 +00:00
Tyera Eulberg
fd9e003ae1
Bump version to 1.4.12 ( #13792 )
2020-11-24 22:53:36 +00:00
Tyera Eulberg
7099d07fd3
Bump version to 1.4.11 ( #13780 )
2020-11-24 06:30:35 +00:00
mergify[bot]
6dc62bfb77
Fix fragile tests in prep of stake rewrite pr ( #13654 ) ( #13721 )
...
* Fix fragile tests in prep of stake rewrite pr
* Restore BOOTSTRAP_VALIDATOR_LAMPORTS where appropriate
* Further clean up
* Further clean up
* Aligh with other call site change
* Remove false warn!
* fix ci!
(cherry picked from commit b74d7b5758
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-20 09:34:46 +00:00
Tyera Eulberg
855cf9a362
Bump version to 1.4.10 ( #13657 )
2020-11-18 01:29:58 +00:00
mergify[bot]
ea0a3521ed
Fix assertion failure ( #13626 ) ( #13631 )
...
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit afc1b59475
)
Co-authored-by: carllin <wumu727@gmail.com>
2020-11-17 07:01:10 +00:00
Trent Nelson
b838aba840
Bump version to 1.4.9
2020-11-13 17:50:10 -07:00
mergify[bot]
f6b65b033e
Fix overflow in entry tick verification (bp #13572 ) ( #13581 )
...
* Fix overflow in entry hash count verification
(cherry picked from commit d611337394
)
* clippy
(cherry picked from commit 01a4889b53
)
Co-authored-by: Justin Starry <justin@solana.com>
2020-11-13 16:49:05 +00:00
Ryo Onodera
e14c2f94f4
Bump version to v1.4.8 ( #13552 )
2020-11-12 17:43:31 +00:00
mergify[bot]
2cb9ca5966
Fix slow/stuck unstaking due to toggling in epoch ( #13501 ) ( #13535 )
...
* Fix slow/stuck unstaking due to toggling in epoch
* nits
* nits
* Add stake_program_v2 feature status check to cli
Co-authored-by: Tyera Eulberg <tyera@solana.com>
(cherry picked from commit 89b474e192
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-11 22:27:10 +00:00
Tyera Eulberg
c9e646b86b
Bump version to v1.4.7 ( #13488 )
2020-11-10 05:55:26 +00:00
Michael Vines
e738bf1c9a
Bump version to v1.4.6
2020-11-07 02:49:14 +00:00
mergify[bot]
b15d826476
Allow feature builtins to overwrite existing builtins ( #13403 ) ( #13420 )
...
* Allow feature builtins to overwrite existing builtins
* Add feature_builtin ActivationType
* Correctly retain idempotent for replacing case
* Fix test
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
(cherry picked from commit bc62313c66
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-05 16:51:25 +00:00
Michael Vines
5877427389
Bump version to v1.4.5
2020-11-01 17:05:45 +00:00
mergify[bot]
b28d10d46f
Add bank timestamp bounding (bp #13120 ) ( #13331 )
...
* Add bounding feature
(cherry picked from commit 96b8aa8bd1
)
* Repurpose unused as Clock::epoch_start_timestamp; add gated update
(cherry picked from commit 0049ab69fb
)
* Add bounded timestamp-estimation method
(cherry picked from commit 80db6c0980
)
* Use bounded timestamp-correction when feature enabled
(cherry picked from commit 90778615f6
)
* Prevent block times from ever going backward
(cherry picked from commit eb2560e782
)
* Sample votes from ancestors back to root
(cherry picked from commit 4260b3b416
)
* Add Clock sysvar details, update struct docs
(cherry picked from commit 3a1e125ce3
)
* Add design proposal and update validator-timestamp-oracle
(cherry picked from commit a3912bc084
)
* Adapt to feature::create_account
Co-authored-by: Tyera Eulberg <tyera@solana.com>
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-01 06:02:34 +00:00
mergify[bot]
40a3885d3b
Native/builtin programs now receive an InvokeContext (bp #13286 ) ( #13298 )
...
* Native/builtin programs now receive an InvokeContext
(cherry picked from commit df8dab9d2b
)
* Remove MessageProcessor::loaders
(cherry picked from commit 2664a1f7ef
)
* Remove Entrypoint type
(cherry picked from commit 225bed11c7
)
* Remove programs clone()
(cherry picked from commit 33884d847a
)
* Add sol_log_compute_units syscall
(cherry picked from commit 66e51a7363
)
* Add Bank::set_bpf_compute_budget()
(cherry picked from commit 7d686b72a0
)
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-30 07:47:17 +00:00
mergify[bot]
69b3f10207
move Account to solana-sdk (bp #13198 ) ( #13269 )
...
* move Account to solana-sdk (#13198 )
(cherry picked from commit c458d4b213
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com>
2020-10-29 19:16:52 +00:00
mergify[bot]
cf896dbeee
Use bank timestamp to populate Blockstore::blocktime_cf when correction active ( #13158 ) ( #13160 )
...
(cherry picked from commit 39686ef098
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-10-26 20:34:15 +00:00
Michael Vines
597618846b
Bump version to v1.4.4
2020-10-24 22:10:32 +00:00
Trent Nelson
53b074aa35
Bump version to 1.4.3
2020-10-23 04:20:28 +00:00
mergify[bot]
edfbd8d65a
Add replacements for Pubkey::new_rand()/Hash::new_rand() (bp #12987 ) ( #13076 )
...
* Add pubkey_new_rand(), mark Pubkey::new_rand() deprecated
(cherry picked from commit 0e68ed6a8d
)
* Add hash_new_rand(), mark Hash::new_rand() as deprecated
(cherry picked from commit 76f11c7dae
)
* Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
(cherry picked from commit 7bc073defe
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
# runtime/benches/accounts.rs
# runtime/src/accounts.rs
* Run `codemod --extensions rs Hash::new_rand solana_sdk:#️⃣ :new_rand`
(cherry picked from commit 17c391121a
)
* Remove unused pubkey::Pubkey imports
(cherry picked from commit 959880db60
)
# Conflicts:
# runtime/src/accounts_index.rs
* Resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-22 05:08:01 +00:00
mergify[bot]
5236acf4b0
Add ledger-tool dead-slots and improve purge a lot ( #13065 ) ( #13071 )
...
* Add ledger-tool dead-slots and improve purge a lot
* Reduce batch size...
* Add --dead-slots-only and fixed purge ordering
(cherry picked from commit 0776fa05c7
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-10-21 18:57:22 +00:00
mergify[bot]
d05bfa08c7
improves threads' utilization in processing gossip packets ( #12962 ) ( #13023 )
...
ClusterInfo::process_packets handles incoming packets in a thread_pool:
https://github.com/solana-labs/solana/blob/87311cce7/core/src/cluster_info.rs#L2118-L2134
However, profiling runtime shows that threads are not well utilized and
a lot of the processing is done sequentially.
This commit redistributes the work done in parallel. Testing on a gce
cluster shows 20%+ improvement in processing gossip packets with much
smaller variations.
(cherry picked from commit 75d62ca095
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-10-20 19:59:35 +00:00
mergify[bot]
f36cfb92f7
Convert Blockstore Rewards cf to protobuf (bp #12860 ) ( #12935 )
...
* Convert Blockstore Rewards cf to protobuf (#12860 )
* Add Blockstore protobuf cf type
* Add Rewards message to proto and make generated pub
* Convert Rewards cf to ProtobufColumn
* Add bench
* Adjust tags
* Move solana proto definitions and conversion methods to new crate
(cherry picked from commit 359707c85e
)
# Conflicts:
# Cargo.lock
# ledger/Cargo.toml
# storage-bigtable/Cargo.toml
* v1.4-ify
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-10-16 01:27:37 +00:00
Trent Nelson
f3c986385f
Bump version to 1.4.2
2020-10-15 20:26:29 +00:00
Trent Nelson
6e91996606
Bump version to 1.4.1
2020-10-14 03:05:04 +00:00
mergify[bot]
ed06e8b85d
Pacify `cargo audit` (bp #12797 ) ( #12799 )
...
* Bump reqwest/rayon to get past `cargo audit`
(cherry picked from commit 8a119c1483
)
# Conflicts:
# dos/Cargo.toml
# download-utils/Cargo.toml
# metrics/Cargo.toml
* Switch to tempfile
(cherry picked from commit d3b0f87a49
)
* Rework cargo audit ignores
(cherry picked from commit 2301dcf973
)
* Cargo.lock
(cherry picked from commit 859eb606da
)
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-12 04:29:55 +00:00
mergify[bot]
6b9b107ead
Fix various ledger-tool error due to no builtins (bp #12759 ) ( #12766 )
...
* Fix various ledger-tool error due to no builtins (#12759 )
* Fix various ledger-tool error due to no builtins
* Add missing file...
(cherry picked from commit 1f4bcf70b0
)
# Conflicts:
# core/Cargo.toml
# ledger/Cargo.toml
* Rebase
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-10 07:10:38 +00:00
mergify[bot]
567a1cb944
Correct Bank timestamp drift every slot ( #12737 ) ( #12777 )
...
* Move timestamp helper to sdk
* Add Bank method for getting timestamp estimate
* Return sysvar info from Bank::clock
* Add feature-gated timestamp correction
* Rename unix_timestamp method to be more descriptive
* Review comments
* Add timestamp metric
(cherry picked from commit b028c47d2b
)
# Conflicts:
# runtime/src/feature_set.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-10-10 00:42:44 +00:00
mergify[bot]
7a53ca18a6
Store program logs in blockstore / bigtable (TransactionWithStatusMeta) ( #12678 ) ( #12735 )
...
* introduce store program logs in blockstore / bigtable
* fix test, transaction logs created for successful transactions
* fix test for legacy bincode implementation around log_messages
* only api nodes should record logs
* truncate transaction logs to 100KB
* refactor log truncate for improved coverage
(cherry picked from commit 8f5431551e
)
Co-authored-by: Josh <josh.hundley@gmail.com>
2020-10-08 20:19:26 +00:00
sakridge
71a308affd
Use datapoint instead of print for is_full signal ( #12673 )
2020-10-07 13:36:54 -07:00
sakridge
ce98088457
Track inserted repair shreds ( #12455 )
2020-09-29 14:13:21 -07:00
Michael Vines
31696a1d72
Port BPFLoader2 activation to FeatureSet and rework built-in program activation
2020-09-28 12:50:19 -07:00
dependabot[bot]
0718501c72
chore: bump rocksdb from 0.14.0 to 0.15.0
...
Bumps [rocksdb](https://github.com/rust-rocksdb/rust-rocksdb ) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/rust-rocksdb/rust-rocksdb/releases )
- [Changelog](https://github.com/rust-rocksdb/rust-rocksdb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-rocksdb/rust-rocksdb/compare/v0.14.0...v0.15.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-28 09:52:31 -07:00
Michael Vines
c10da16d7b
Port instructions sysvar and secp256k1 program activation to FeatureSet
2020-09-25 11:40:36 -07:00
Justin Starry
6601ec8f26
Record and store invoked instructions in transaction meta ( #12311 )
...
* Record invoked instructions and store in transaction meta
* Enable cpi recording if transaction sender is some
* Rename invoked to innerInstructions
2020-09-24 22:36:22 +08:00