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
825027f9f7
Use AsRef
...
(cherry picked from commit 9993d2c623
)
2020-12-18 20:16:48 -08:00
9b8f0bee99
adds crds-value for broadcasting duplicate shreds through gossip (bp #14133 ) ( #14203 )
...
* adds crds-value for broadcasting duplicate shreds through gossip (#14133 )
In gossip, the header overhead we get from:
https://github.com/solana-labs/solana/blob/de9ac43eb/core/src/cluster_info.rs#L434-L435
https://github.com/solana-labs/solana/blob/de9ac43eb/core/src/crds_value.rs#L31-L36
https://github.com/solana-labs/solana/blob/de9ac43eb/core/src/crds_value.rs#L73
already exceeds SIZE_OF_NONCE in shreds. We also need aditional
meta-data (wallclock, source pubkey, ...). Which means that given the
SHRED_PAYLOAD_SIZE, we cannot fit all these in PACKET_DATA_SIZE:
https://github.com/solana-labs/solana/blob/de9ac43eb/ledger/src/shred.rs#L80
On top of that, we need 2 shred payloads as the proof of duplicate. So
each DuplicateShred crds value includes only a chunk of the payload,
along with the meta-data to reconstruct the full payload from the chunks
on the receiving end.
(cherry picked from commit 6a3797e164
)
# Conflicts:
# Cargo.lock
# ledger/Cargo.toml
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-12-18 22:54:50 +00:00
fc13c1d654
getBlockTime RPC method now falls back to BigTable in all cases ( #14207 )
...
(cherry picked from commit 0090106f60
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-18 22:23:35 +00:00
a57758e9c9
Add CPI support for upgradeable loader (bp #14193 ) ( #14199 )
2020-12-18 11:23:00 -08:00
564590462a
Add transactionCount field to GetEpochInfo
...
(cherry picked from commit efc091e28a
)
2020-12-18 10:09:30 -08:00
269f6af97e
fix: add transactionCount field to GetEpochInfo
...
(cherry picked from commit 01fe835e73
)
2020-12-18 10:09:30 -08:00
57b8a59632
Reject invalid --expected-shred-version ( #14183 ) ( #14202 )
...
* Reject invalid --expected-shred-version
* less code
(cherry picked from commit 3c9b853268
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-18 19:19:57 +09:00
4289f52d2b
net/gce.sh: Upgrade to Ubuntu 20.04
...
(cherry picked from commit 3322b83183
)
2020-12-17 18:17:01 -07:00
573f68620b
net/gce.sh: Switch to SSD boot disks
...
(cherry picked from commit a0507505f4
)
2020-12-17 18:17:01 -07:00
4bfe64688b
net/gce.sh: Bump machine type to 24-core, 64GB RAM
...
(cherry picked from commit ffe0532ded
)
2020-12-17 18:17:01 -07:00
50034848a5
Improved Transaction Forwarding ( #13944 ) ( #14195 )
...
* Forwarding
* Dedupe leaders
* Use consistent commitment for last_valid_slot in rpc send_transaction
* Plumb rpc send_transaction options into solana-validator
* Extend num slots banking-stage holds forwarded txs
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit da7d1e2302
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-17 18:14:06 -07:00
981294cbc6
Don't require increased open file limit at ledger creation
...
Follow-up to 0b92720fdb
, `create_new_ledger()` does not require a higher fd limit
v1.5.0
2020-12-17 08:49:23 -08:00
ff728e5e56
Fix program account rent exemption ( #14176 ) ( #14180 )
...
(cherry picked from commit 593ad80954
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-17 03:46:43 -08:00
9aaf41bef2
Don't require increased open file limit in solana-test-validator
...
Travis CI in particular does not allow the open file limit to be
increased.
(cherry picked from commit 0b92720fdb
)
2020-12-16 22:59:56 -08:00
271eec656c
Use an ephemeral mint address if the client keypair is not available
...
Typically this can occur in a CI environment
(cherry picked from commit 8d700c3b94
)
2020-12-16 22:59:56 -08:00
13d071607f
Revert "Ignore RUSTSEC-2020-0077 until next 1.4 release"
...
This reverts commit 1792100e2b
.
2020-12-17 01:54:26 +00:00
ffe35d9a10
Bump SPL crates
2020-12-17 01:54:26 +00:00
bb2fb07b39
Add blockstore skipped api ( #14145 ) ( #14167 )
...
* Add blockstore api to determine if a slot was skipped
* Return custom rpc error if slot is skipped
(cherry picked from commit ac0d32bc7e
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-16 22:26:54 +00:00
85fc51dc61
fix formatting error in docs ( #14163 )
...
(cherry picked from commit 41a93ced23
)
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2020-12-16 18:51:24 +00:00
0276b6c4c2
Correctly show reward percent changes ( #14161 )
...
(cherry picked from commit bebfa6e93c
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-16 18:15:36 +00:00
c481e4fe7f
Partial shred deserialize cleanup and shred type differentiation ( #14094 ) ( #14139 )
...
* Partial shred deserialize cleanup and shred type differentiation in retransmit
* consolidate packet hashing logic
(cherry picked from commit d4a174fb7c
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-16 08:57:21 -08:00
76a3b3ad11
Remove lock files from programs/bpf/rust ( #14148 ) ( #14158 )
...
(cherry picked from commit 49c3f14016
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-16 11:56:48 +00:00
356c663e88
check for resize access violations ( #14142 ) ( #14152 )
...
(cherry picked from commit 025f886e10
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-16 10:28:27 +00:00
015bbc1e12
Fix up upgradeable bpf loader activation ( #14149 )
...
(cherry picked from commit 501fd83afd
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-16 07:54:44 +00:00
454a9f3175
Switch solana deploy
commitment default from "max" to "singleGossip" ( #14146 )
...
(cherry picked from commit db4ac17259
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-16 04:46:45 +00:00
485b3d64a1
Add Program loader/environment instruction errors ( #14120 ) ( #14143 )
...
(cherry picked from commit d513b0c4ca
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-16 03:50:04 +00:00
5d170d83c0
Remove stray println
2020-12-15 16:44:56 -08:00
f54d8ea3ab
solana-test-validator usability improvements (bp #14129 ) ( #14136 )
...
* Clean up Cargo.toml
(cherry picked from commit d2af09a647
)
* Prevent multiple test-validators from using the same ledger directory
(cherry picked from commit f3272db7f7
)
* Add --reset flag to allow for easy ledger reset
(cherry picked from commit 00c46c528e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-15 23:21:21 +00:00
ef9f54b3d4
Fix race between setting tick height and calculating accounts hash ( #14101 ) ( #14132 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 75e9e321de
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-12-15 22:05:44 +00:00