8a690b6cf7
nit: clarify loader id ( #14355 ) ( #14358 )
...
(cherry picked from commit 6c6095abe7
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 21:25:41 +00:00
8688efa89b
Speed up UDP reachable port checks ( #14351 )
...
(cherry picked from commit 71b88da48e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-30 19:00:28 +00:00
3b047e5b99
Port ip-echo-server to tokio 0.3 (bp #14345 ) ( #14350 )
...
* Port ip-echo-server to tokio 0.3
(cherry picked from commit fb6c660cfd
)
# Conflicts:
# net-utils/Cargo.toml
* Update Cargo.toml
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-30 18:55:24 +00:00
3cddc731b2
Add --test arg to cargo-test-bpf ( #14342 ) ( #14344 )
...
(cherry picked from commit 3d0cd2cdb0
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-12-30 07:55:38 +00:00
1d29a583c6
Rewrite faucet with tokio v0.3 (bp #14336 ) ( #14343 )
...
* Rewrite faucet with tokio v0.3 (#14336 )
* Rewrite faucet for contemporary tokio
* Move away from framed decoder
(cherry picked from commit d63dd95806
)
# Conflicts:
# faucet/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-12-30 05:09:00 +00:00
b5335edb35
Add experimental knob for tuning PoH pinned CPU core (bp #14330 ) ( #14341 )
...
* core: Update stale error message
(cherry picked from commit 82f61c0c4a
)
* validator: Add experimental flag to select PoH pinned core
(cherry picked from commit fe667db910
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-30 03:33:39 +00:00
abee1e83eb
Add poh speed check and tick speed calibration ( #14292 ) ( #14328 )
...
(cherry picked from commit 2074e407cd
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-29 19:40:49 +00:00
6c5be574c8
Upgrade in-tree tokio 0.2 usage to tokio 0.3 ( #14326 )
...
(cherry picked from commit 444ed768dc
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-29 19:03:18 +00:00
c1f993d2fc
Retry durable-nonce transactions ( #14308 ) ( #14325 )
...
* Retry durable-nonce transactions
* Add metric to track durable-nonce txs in queue
* Populate send-tx-service initial addresses with tpu_address if empty (primarily for testing)
* Reinstate last_valid_slot check for durable-nonce txs; use arbitrary future slot
(cherry picked from commit 3f10fb993b
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-29 18:03:04 +00:00
e2ddb2f0ea
Limit CPI instruction size ( #14317 ) ( #14321 )
...
(cherry picked from commit 5524938a50
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 02:38:22 +00:00
f3faba5ca9
Remove Testnet-specific old code ( #14305 ) ( #14315 )
...
(cherry picked from commit 7893e2e307
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-28 22:18:33 +00:00
3a6fd91739
Log error from AppendVec removal & a panic clean ( #14302 ) ( #14310 )
...
(cherry picked from commit addffd7694
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-28 22:08:22 +00:00
2d2b3d8287
CLI: Support retrieving past leader schedules (bp #14304 ) ( #14312 )
...
* clap-utils: Add epoch validator
(cherry picked from commit a709850ee4
)
* CLI: Support displaying past leader schedules
(cherry picked from commit bd761e2a52
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-28 21:41:55 +00:00
6e47b88399
run.sh: add env knob for solana-validor ( #14303 ) ( #14307 )
...
(cherry picked from commit 4af33674a7
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-28 20:48:03 +00:00
941e56c6c7
Avoid creating "..tmp" files
2020-12-28 08:58:41 -08:00
d1adc2a446
Persist gossip contact info
...
(cherry picked from commit 9ddd6f08e8
)
2020-12-27 22:09:00 -08:00
02da7dfedf
Bump version to v1.5.1
2020-12-27 21:57:43 -08:00
eb0fd3625a
Fix subtraction overflow in metrics ( #14290 ) ( #14296 )
...
(cherry picked from commit c693ffaa08
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-28 02:34:58 +00:00
b87e606626
Fix download speed ( #14291 ) ( #14295 )
...
(cherry picked from commit 7b49c85aa7
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-28 02:21:40 +00:00
1c91376f78
obtains staked-nodes from the root-bank ( #14257 ) ( #14293 )
...
... as opposed to the working bank
(cherry picked from commit 49019c6613
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-27 14:49:29 +00:00
10067ad07b
indexes votes in crds table ( #14272 ) ( #14294 )
...
(cherry picked from commit 2fd38d9912
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-27 14:49:23 +00:00
eb76289107
Fix windows build
2020-12-24 17:49:41 -08:00
8926736e1c
Remove stray dbg
2020-12-24 10:45:34 -08:00
bf4c169703
Prevent bpf loader impersonators ( #14278 ) ( #14279 )
...
(cherry picked from commit ee0a80a092
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-24 04:24:30 +00:00
0020e43476
Don't use caller passed executable account ( #14276 ) ( #14277 )
...
(cherry picked from commit b1d702a618
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-23 23:52:04 +00:00
a9a2c76221
Limit CPI from calling loader or native programs ( #14252 ) ( #14275 )
...
(cherry picked from commit 0b479ab180
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-23 20:01:56 +00:00
4754b4e871
Save cloning program account data ( #14251 ) ( #14274 )
...
(cherry picked from commit 5945305b1d
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-23 19:35:09 +00:00
52ffb9a64a
Add accounts shrink paths (bp #14238 ) ( #14270 )
...
* Add shrink paths (#14238 )
(cherry picked from commit baa9602411
)
* Ignore long/hanging test (#14261 )
Co-authored-by: sakridge <sakridge@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-23 08:03:33 +00:00
bd0b1503c6
Deinitialize stake data upon zero balance
2020-12-23 06:17:59 +00:00
10e7fa40ac
Deinitialize vote data upon zero balance
2020-12-23 06:17:59 +00:00
198ed407b7
vote: Add helper for creating current-versioned states
2020-12-23 06:17:59 +00:00
d96af2dd23
Deinitialize nonce data upon zero balance
2020-12-23 06:17:59 +00:00
192cca8f98
validator: Multiple --entrypoint support (bp #14256 ) ( #14264 )
...
* Update entrypoint contact info even when shred version adoption is not requested
(cherry picked from commit 3373082ffa
)
* Multiple entrypoint support
(cherry picked from commit ace360ade2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-23 04:15:44 +00:00
ee716e1c55
Add log message for when a local snapshot is too old
...
(cherry picked from commit 65dcb3dc81
)
2020-12-22 19:58:29 -08:00
6dd3c7c2dd
removes &Arc<Self> receivers ( #14234 ) ( #14262 )
...
(cherry picked from commit a14cfd660a
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-23 02:11:08 +00:00
582b4c9edf
Upgradeable programs called same as non-upgradeable ( #14239 ) ( #14254 )
...
* Upgradeable programs called same as non-upgradeable
* nudge
(cherry picked from commit ab205b682a
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-22 21:17:18 +00:00
f15add2a74
Feature-gate stake-program-v3 ( #14232 ) ( #14250 )
...
* Remove deprecated legacy stake program
* Add legacy stake program
* Strip out duplicative legacy code
* Feature-deploy stake-program-v3
* Add ownership check in stake processor
(cherry picked from commit 7042f11791
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-22 19:42:30 +00:00
74d48910e2
Rework upgradeable loader cli ( #14209 ) ( #14236 )
...
(cherry picked from commit 3316e7166c
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-21 22:26:11 +00:00
c53e8ee3ad
improves performance in replay-stage ( #14217 ) ( #14233 )
...
bank::vote_accounts returns a hash-map which is slow to iterate, but all uses
only require an iterator:
https://github.com/solana-labs/solana/blob/b3dc98856/runtime/src/bank.rs#L4300-L4306
Similarly, calculate_stake_weighted_timestamp takes a hash-map whereas it only
requires an iterator:
https://github.com/solana-labs/solana/blob/b3dc98856/sdk/src/stake_weighted_timestamp.rs#L21-L28
(cherry picked from commit 7b08cb1f0d
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-21 21:23:35 +00:00
c5e5fedc47
Allow multiple --accounts arguments
...
(cherry picked from commit 8082a2454c
)
2020-12-21 11:43:04 -08:00
b9929dcd67
Warp-timestamp pr#
2020-12-21 10:53:43 -07:00
554a158443
Fix test_max_hashes ( #14189 )
...
(cherry picked from commit a5db6399ad
)
2020-12-21 09:05:26 -08:00
b7fa4b7ee1
caches staked nodes computed from vote-accounts ( #13929 )
...
(cherry picked from commit d6d76219b6
)
2020-12-21 09:05:17 -08:00
fd44cee8cc
limits number of crds values returned when responding to pull requests ( #13739 )
...
Crds values buffered when responding to pull-requests can be very large taking a lot of memory.
Added a limit for number of buffered crds values based on outbound data budget.
(cherry picked from commit 691031fefd
)
2020-12-21 09:04:50 -08:00
c6a362cce2
Do not delete ALL other snapshots before downloading a new snapshot ( #14227 )
...
(cherry picked from commit 93ae177503
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-21 10:27:25 +00:00
252180c244
Restore Content-Length header for streaming snapshot download ( #14222 )
...
(cherry picked from commit 57b03c5bc1
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-21 08:41:02 +00:00
e02b4e698e
Fix timestamp handling on ledger warp ( #14210 ) ( #14218 )
...
* Reset timestamp for slot and epoch-start on warp
* Fix genesis timestamp metric source
* Remove check that timestamp > unix_timestamp_from_genesis
Default to previous timestamp, not genesis timestamp
* Move timestamp metrics to report even on warp
* Initialize slot 0 timestamps correctly
* Add feature gate to warp testnet timestamp
* Review suggestion: simplify warp-timestamp slot check
(cherry picked from commit e15f95a36f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-20 22:52:23 +00:00
4811afe8eb
Stream RPC snapshot downloads (bp #14213 ) ( #14215 )
...
* Stream RPC snapshot downloads
(cherry picked from commit b3dc988564
)
# Conflicts:
# core/Cargo.toml
* Update Cargo.toml
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-20 01:28:41 +00:00
bc4568b10f
Update Cargo.toml
2020-12-18 20:16:48 -08:00
d59c131e90
Create a random -keypair.json
file alongside the program deploy artifact for easy upgrades
...
(cherry picked from commit 636a455790
)
2020-12-18 20:16:48 -08:00