56a4fc3dd2
Use timeout to allow RpcClient to retry initial transaction confirmation (backport #18311 ) ( #18315 )
...
* Use timeout to allow RpcClient to retry initial transaction confirmation (#18311 )
* Tidying: relocate function
* Use proper helper method for RpcClient commitment
* Add RpcClientConfig
* Add configurable confirm_transaction_initial_timeout
* Use default 5s timeout for initial tx confirmation
(cherry picked from commit 9d4428d3d8
)
* Fixup deprecated method
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-30 04:51:11 +00:00
5380623f32
tx-status: Don't assume a memo instruction succeeded ( #18287 )
...
(cherry picked from commit 7babf28ef7
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-29 03:02:03 +00:00
313e8bddd4
Cli epoch-info: generate epoch-completed time from block times ( #18258 ) ( #18284 )
...
* Generate epoch-completed time from block times
* Add annotation when block times not available
(cherry picked from commit f2b0d562b0
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-28 23:17:29 +00:00
7d68c44307
Don't update if already an executable ( #18252 )
...
(cherry picked from commit 2fbedd834f
)
# Conflicts:
# runtime/src/message_processor.rs
Co-authored-by: Jack May <jack@solana.com >
2021-06-27 19:21:02 +00:00
6b9a529cda
Bump borsh from 0.8.1 to 0.9.0 (backport #18230 ) ( #18237 )
...
* Bump borsh from 0.8.1 to 0.9.0 (#18230 )
(cherry picked from commit 7ed2cf30a5
)
# Conflicts:
# programs/bpf/Cargo.lock
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-25 23:10:01 +00:00
12eea11f93
Add entrypoint to run CI locally (backport #18131 ) ( #18216 )
...
* ci: use versioned cargo wrapper for crate ordering
(cherry picked from commit 554002b73c
)
* ci: nvidia persistence mode isn't a hard requirement
(cherry picked from commit f213e48067
)
* sdk: ensure `ld` can find criterion when running BPF tests
(cherry picked from commit 7ee39fcb0f
)
* ci: give localnet nodes a more time to startup
(cherry picked from commit 278a241db3
)
* ci: add downstream build wrapper
(cherry picked from commit 761e324982
)
* ci: add wrapper script for running ci locally
Linux only for now
(cherry picked from commit 0bc38153ca
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-25 05:18:15 +00:00
d2a0445fff
Update README.md ( #18191 ) ( #18194 )
...
(cherry picked from commit 3362ac06b5
)
Co-authored-by: Hao-Cher Hong <rax333j@gmail.com >
2021-06-24 15:47:05 +00:00
232ba8473d
fix build broken by 37f618f
2021-06-23 01:43:11 -06:00
a455c8a5af
ci: isolate release builds
2021-06-23 06:02:39 +00:00
07865a97ce
Add metrics for rpc send-transaction failures (backport #18156 ) ( #18163 )
...
* Add metrics for rpc send-tx failures (#18156 )
(cherry picked from commit 64cff8c5a1
)
# Conflicts:
# core/src/rpc.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-23 00:00:10 -06:00
37f618fc62
programs/config: Disallow duplicate signers
2021-06-22 23:04:24 -06:00
86ff6f82f8
chore(pubkey): remove dead code ( #18161 )
...
(cherry picked from commit 755b7c7aee
)
Co-authored-by: hrls <viktor.kharitonovich@gmail.com >
2021-06-23 03:12:30 +00:00
57baf7f79b
Add memory operation syscalls (backport #16447 ) ( #18149 )
...
* Add memory operation syscalls (#16447 )
(cherry picked from commit 2b50529265
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/sysvar/tests/lib.rs
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-06-22 19:57:51 +00:00
e259388069
Move stake_weighted_timestamp module (backport #18114 ) ( #18119 )
...
* Move stake_weighted_timestamp module (#18114 )
* Move timestamp module into runtime
* Less public
* Remove unused enum
(cherry picked from commit 19fe1dd463
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/lib.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-22 00:28:02 +00:00
06d6e357ae
Bump version to v1.6.15 ( #18108 )
2021-06-21 14:23:43 -06:00
7759210ff3
Add logging when RpcHealthStatus::Unknown ( #18099 )
v1.6.14
2021-06-21 11:40:15 -06:00
16c42a7b30
docs: flesh out validator network requirements
2021-06-21 11:14:42 -06:00
d0f08cf25b
docs: don't suggest cloud instances for validators
2021-06-21 11:14:42 -06:00
0ed9f7144c
sdk: refactor pda generation
2021-06-21 10:16:49 -06:00
b17c2f451a
Add additional subscription metrics ( #18071 ) ( #18075 )
...
(cherry picked from commit 83a6c669a5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-18 23:56:17 +00:00
4aedc086e5
fix loader instruction checker ( #18047 ) ( #18073 )
...
(cherry picked from commit d18e02ef44
)
Co-authored-by: Jack May <jack@solana.com >
2021-06-18 21:06:23 +00:00
0afb330db0
validator: expose max active pubsub subscriptions to CLI ( #18035 )
...
(cherry picked from commit 5efc48fc69
)
# Conflicts:
# core/src/rpc_pubsub_service.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-18 00:35:26 +00:00
1201ef172e
Bump version to v1.6.14 ( #18050 )
2021-06-17 20:42:10 +00:00
b63a65bc21
validator: run poh speed test earlier in start up ( #18023 )
...
(cherry picked from commit 5bc6c89adc
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.6.13
2021-06-17 00:51:27 +00:00
392d2dbd8a
metrics: Don't unwrap client instantiation errors ( #18018 )
...
(cherry picked from commit 5cc073420a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-16 22:02:43 +00:00
4733d6dfc3
v1.6: Properly handle block_height in Bigtable bincode deserialization ( #17992 )
...
* Default block_height on eof
* Add comment to prevent future errors
2021-06-16 00:55:19 +00:00
337de51088
Bump version to v1.6.13 ( #17972 )
2021-06-15 23:47:22 +09:00
24ee0b3934
Avoid full-range compactions with periodic filtered b.g. ones (backport #16697 ) ( #17956 )
...
* Avoid full-range compactions with periodic filtered b.g. ones (#16697 )
* Update rocksdb to v0.16.0
* Promote the infrequent and important log to info!
* Force background compaction by ttl without manual compaction
* Fix test
* Support no compaction mode in test_ledger_cleanup_compaction
* Fix comment
* Make compaction_interval customizable
* Avoid major compaction with periodic filtering...
* Adress lazy_static, special cfs and range check
* Clean up a bit and add comment
* Add comment
* More comments...
* Config code cleanup
* Add comment
* Use .conflicts_with()
* Nullify unneeded delete_range ops for special CFs
* Some clean ups
* Clarify the locking intention
* Ensure special CFs' consistency with PurgeType::CompactionFilter
* Fix comment
* Fix bad copy paste
* Fix various types...
* Don't use tuples
* Add a unit test for compaction_filter
* Fix typo...
* Remove flag and just use new behavior always
* Fix wrong condition negation...
* Doc. about no set_last_purged_slot in purge_slots
* Write a test and fix off-by-one bug....
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Follow up to github review suggestions
* Fix line-wrapping
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 1f97b2365f
)
# Conflicts:
# Cargo.lock
# ledger/src/blockstore_db.rs
* Fix conflicts
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
v1.6.12
2021-06-15 08:49:13 +00:00
ff8f78199d
Bump spl-token to v3.1.1 (backport #17951 ) ( #17957 )
...
* Bump spl-token to v3.1.1 (#17951 )
(cherry picked from commit b7de369992
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# accounts-cluster-bench/Cargo.toml
# programs/bpf/Cargo.lock
# rpc/Cargo.toml
# tokens/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-15 07:54:09 +00:00
b524e0a1a7
add data point for cap mismatch ( #17746 ) ( #17752 )
...
(cherry picked from commit f6fb8906c7
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 05:28:40 +00:00
7dcecdd285
Account for duplicate before a bank is frozen or replayed ( #17866 ) ( #17882 )
...
(cherry picked from commit afafa624a3
)
Co-authored-by: carllin <carl@solana.com >
2021-06-11 07:28:22 +00:00
151f025bee
Update a dangling devnet endpoint doc ( #17836 ) ( #17838 )
...
(cherry picked from commit 2dfb5b7579
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-08 16:07:13 +00:00
edc83c0543
v1.6: Bump jsonrpc crates ( #17799 )
...
* Bump jsonrpc crates
* Update error text
2021-06-07 18:09:09 +00:00
b777bbf7db
system-program: Remove zero lamport check on transfers (backport #17726 ) ( #17763 )
...
* system-program: Remove zero lamport check on transfers (#17726 )
* system-program: Move lamports == 0 check on transfers
* Address feedback
* Update stake split to explicitly allocate + assign
* Update stake tests referring to split instruction
* Revert whitespace
* Update split instruction index in test
* Remove unnecessary `assign_with_seed` from `split_with_seed`
* Fix stake instruction parser
* Update test to allow splitting into account with lamports
(cherry picked from commit 8f5e773caf
)
# Conflicts:
# runtime/src/system_instruction_processor.rs
# sdk/src/feature_set.rs
* Resolve merge conflicts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-06-07 12:55:57 +00:00
a29344e681
Document ProgramTest::new and fix ProgramTest::add_program ( #17754 ) ( #17767 )
...
* document ProgramTest::new
* simplify ProgramTest::new doc-string
* make ProgramTest::add_program noisier
`add_program` (and `new`, implicitly) now prints a warning when the user
supplies a bogus program name to a ProgramTest and invokes `test-bpf`.
Additionally, it is now impossible to ask for a regular `test` and for
the generated ProgramTest to load BPF code instead of native code.
Previously, this was caused by a precedence issue: BPF code would always
be preferred over native if the program name was valid, regardless of
user choice.
(cherry picked from commit 2aaf55795f
)
Co-authored-by: xuoe <alex@psi.io >
2021-06-06 05:56:24 +00:00
1bce8a99a2
Add more CPI call depth tests ( #17657 )
2021-06-02 00:22:29 -07:00
3a3454d788
Bump version to v1.6.12 ( #17651 )
2021-06-01 21:40:36 -06:00
0e3131f2b4
Purge expired BlockHeight data from blockstore (backport #17634 ) ( #17640 )
...
* Purge expired BlockHeight data from blockstore (#17634 )
* Purge expired BlockHeight data from blockstore
* Also call compact_storage and add comment....
(cherry picked from commit 96cdbfdcc0
)
# Conflicts:
# ledger/src/blockstore_db.rs
* Fix conflict
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
v1.6.11
2021-06-02 00:04:12 +00:00
27997653f1
Rework #17486 (backport #17566 ) ( #17596 )
...
* Revert "Improve missing default signer error messaging (#17486 )"
This reverts commit 6d40d0d141
.
(cherry picked from commit ca8c1c6c42
)
* Improve missing default filepath signer error messaging
(cherry picked from commit 06a926f2f4
)
* CI: temporarily skip spl downstream build
(cherry picked from commit d01b4f80f9
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-31 17:27:12 +00:00
c3f66dcfa7
Make initialize
public ( #17605 ) ( #17606 )
...
(cherry picked from commit 2896fc3987
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-31 07:45:34 -07:00
6a2377dd50
Disable read-only optimization features ( #17583 )
...
* Disable RO optimization features
* nudge
2021-05-28 21:55:37 +00:00
8b1a1d9c99
test-validator: add an arg to control faucet genesis balance ( #17581 )
...
(cherry picked from commit 974a96738a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-28 10:43:31 -07:00
01e2d5cd35
Add block height to ConfirmedBlock structs (backport #17523 ) ( #17534 )
...
* Add block height to ConfirmedBlock structs (#17523 )
* Add BlockHeight CF to blockstore
* Rename CacheBlockTimeService to be more general
* Cache block-height using service
* Fixup previous proto mishandling
* Add block_height to block structs
* Add block-height to solana block
* Fallback to BankForks if block time or block height are not yet written to Blockstore
* Add docs
* Review comments
(cherry picked from commit ab581dafc2
)
# Conflicts:
# core/src/replay_stage.rs
# core/src/tvu.rs
# core/src/validator.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 22:42:46 -07:00
8b61ba4d8d
Add missing fields from getClusterNodes documentation (backport #17501 ) ( #17502 )
...
* Add missing fields from getClusterNodes documentation
(cherry picked from commit 3d40ec3c88
)
# Conflicts:
# docs/src/developing/clients/jsonrpc-api.md
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-26 21:38:27 -07:00
f364956d15
Plumb transaction-level rewards (aka "rent debits") into the getTransaction
RPC method (backport #17528 ) ( #17532 )
...
* Plumb transaction-level rewards (aka "rent debits") into the `getTransaction` RPC method
(cherry picked from commit 9541411c15
)
# Conflicts:
# docs/src/developing/clients/jsonrpc-api.md
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-26 21:33:30 -07:00
cedd00e82e
Fix typo in docs ( #17531 )
...
(cherry picked from commit 7dfc1d9790
)
Co-authored-by: Felipe Lima <felipe.lima@gmail.com >
2021-05-27 03:13:21 +00:00
3b22f5b833
simulateTransaction RPC method can now return accounts modified by the simulation (backport #17499 ) ( #17526 )
...
* simulateTransaction can now return accounts modified by the simulation
(cherry picked from commit cbce440af4
)
# Conflicts:
# rpc/src/parsed_token_accounts.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-27 00:06:05 +00:00
9c549a3ccf
Add custom error for tx-history queries when node does not support (backport #17494 ) ( #17522 )
...
* Add custom error for tx-history queries when node does not support (#17494 )
(cherry picked from commit 6abe089740
)
# Conflicts:
# core/src/rpc.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 21:37:26 +00:00
f4cf7d2c84
Add last valid block height to rpc Fees (backport #17506 ) ( #17507 )
...
* Add last valid block height to rpc Fees (#17506 )
* Add last_valid_block_height to fees rpc
* Add getBlockHeight rpc
* Update docs
(cherry picked from commit e9bc1c6b07
)
# Conflicts:
# client/src/rpc_request.rs
# docs/src/developing/clients/jsonrpc-api.md
* Fix conflicts and a-z docs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 16:25:41 +00:00
b9834ed9eb
docs: Add find_program_address
and example ( #17515 ) ( #17517 )
...
(cherry picked from commit bb72ab7f1b
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-05-26 15:49:53 +00:00