mergify[bot]
72c082f55a
Add precompile verification to preflight ( #12486 ) ( #12516 )
...
(cherry picked from commit 6583c8cffe
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-09-28 06:37:52 +00:00
mergify[bot]
bc3aa53e02
Runtime feature activation framework (bp #12376 ) ( #12497 )
...
* Runtime feature activation framework
(cherry picked from commit 93259f0bae
)
# Conflicts:
# runtime/src/bank.rs
* Add feature set identifier to gossiped version information
(cherry picked from commit 35f5f9fc7b
)
# Conflicts:
# Cargo.lock
# version/Cargo.toml
* Port instructions sysvar and secp256k1 program activation to FeatureSet
(cherry picked from commit c10da16d7b
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/message_processor.rs
* Add feature management commands
(cherry picked from commit 93ed0ab2bb
)
# Conflicts:
# Cargo.lock
# cli/Cargo.toml
* Make test_process_rest_api less fragile
(cherry picked from commit 7526bb96f3
)
* Remove id field
(cherry picked from commit cc6ba1e131
)
* FeatureSet test
(cherry picked from commit 92406cf9a0
)
* cargo fmt
(cherry picked from commit 199940d683
)
* cli review feedback
(cherry picked from commit 3a2b8c5e5b
)
* Rename active() to is_active()
(cherry picked from commit e39fac9f01
)
* Resolve merge conflicts
* Remove continues from compute_active_feature_set()
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-26 17:49:53 +00:00
mergify[bot]
495ea7cd2f
introduce RpcPerfSample and modify getPerformanceSamples output ( #12434 ) ( #12464 )
...
* introduce RpcPerfSample and modify getPerformanceSamples output
* camelCase test results
(cherry picked from commit 1d04c1db94
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2020-09-24 22:45:05 +00:00
mergify[bot]
9ff2378948
Remove transaction encoding from storage layer (bp #12404 ) ( #12440 )
...
* Remove transaction encoding from storage layer (#12404 )
(cherry picked from commit 731a943239
)
* Bump
Co-authored-by: Justin Starry <justin@solana.com >
2020-09-24 10:11:27 +00:00
Tyera Eulberg
35a1ab981c
v1.3: Backport block time updates ( #12423 )
...
* Submit a vote timestamp every vote (#10630 )
* Submit a timestamp for every vote
* Submit at most one vote timestamp per second
* Submit a timestamp for every new vote
Co-authored-by: Tyera Eulberg <tyera@solana.com >
* Timestamp first vote (#11856 )
* Cache block time in Blockstore (#11955 )
* Add blockstore column to cache block times
* Add method to cache block time
* Add service to cache block time
* Update rpc getBlockTime to use new method, and refactor blockstore slightly
* Return block_time with confirmed block, if available
* Add measure and warning to cache-block-time
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-23 13:54:49 -06:00
mergify[bot]
e545bdcb51
Bump spl-token (bp #12395 ) ( #12400 )
...
* Bump spl-token (#12395 )
(cherry picked from commit e1a212fb79
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# core/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-09-23 01:08:20 +00:00
mergify[bot]
65e4aac306
Add blockstore column to store performance sampling data (bp #12251 ) ( #12393 )
...
* Add blockstore column to store performance sampling data (#12251 )
* Add blockstore column to store performance sampling data
* introduce timer and write performance metrics to blockstore
* introduce getRecentPerformanceSamples rpc
* only run on rpc nodes enabled with transaction history
* add unit tests for get_recent_performance_samples
* remove RpcResponse from rpc call
* refactor to use Instant::now and elapsed for timer
* switch to root bank and ensure not negative subraction
* Add PerfSamples to purge/compaction
* refactor to use Instant::now and elapsed for timer
* switch to root bank and ensure not negative subraction
* remove duplicate constants
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit 65a6bfad09
)
# Conflicts:
# core/src/validator.rs
# ledger/src/blockstore.rs
* merge cherry pick of 65a6bfad0
Co-authored-by: Josh <josh.hundley@gmail.com >
2020-09-22 22:00:51 +00:00
mergify[bot]
8af90c9c08
Add keccak-secp256k1 instruction ( #11839 ) ( #12368 )
...
* Implement keccak-secp256k1 instruction
Verifies eth addreses with ecrecover function
* Move secp256k1 test
Co-authored-by: sakridge <sakridge@gmail.com >
2020-09-21 18:09:05 +00:00
mergify[bot]
9fbbb7b044
SendTransactionServices now exit their thread on channel drop instead of by a flag (bp #12333 ) ( #12335 )
...
* Give the duplicate send_transaction_service a different thread name
(cherry picked from commit 75c3690ccd
)
* SendTransactionServices now exit their thread on channel drop instead of by a flag
(cherry picked from commit c4913e3c9e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-18 18:32:06 +00:00
Justin Starry
37175d0cdf
Fix off-by-one max payload checks
...
(cherry picked from commit f6cda2579f
)
2020-09-16 17:05:09 -07:00
mergify[bot]
f00c504555
RPC: Limit request payload size to 50kB ( #12287 )
...
(cherry picked from commit 32dcce0ac1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-16 21:26:31 +00:00
mergify[bot]
d35dc79ee7
RPC sendTransaction now returns transaction logs on simulation failure (bp #12267 ) ( #12276 )
...
* RPC sendTransaction now returns transaction logs on simulation failure
(cherry picked from commit 749208fa32
)
* Remove stale comment
(cherry picked from commit c6eea94edc
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-16 16:45:09 +00:00
mergify[bot]
640bf7015f
Check bank capitalization (bp #11927 ) ( #12184 )
...
* Check bank capitalization (#11927 )
* Check bank capitalization
* Simplify and unify capitalization calculation
* Improve and add tests
* Avoid overflow and inhibit automatic restart
* Fix test
* Tweak checked sum for cap. and add tests
* Fix broken build after merge conflicts..
* Rename to ClusterType
* Rename confusing method
* Clarify comment
* Verify cap. in rent and inflation tests
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
(cherry picked from commit de4a613610
)
# Conflicts:
# Cargo.lock
# accounts-bench/Cargo.toml
* Fix conflict 1/2
* Fix conflict 2/2
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-09-11 18:04:10 +00:00
mergify[bot]
d26a809f1f
getMinimumBalanceForRentExemption now only responds to valid account lengths ( #12116 )
...
(cherry picked from commit 9e96180ce4
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-08 18:50:22 +00:00
mergify[bot]
a5cad340ed
Forward transactions to the expected leader instead of your own TPU port (bp #12004 ) ( #12108 )
...
* Forward transactions to the expected leader instead of your own TPU port (#12004 )
* Use PoHRecorder to send to the right leader
* cleanup
* fmt
* clippy
* Cleanup, fix bug
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit c67f8bd821
)
# Conflicts:
# banks-server/Cargo.toml
* Update Cargo.toml
Co-authored-by: anatoly yakovenko <anatoly@solana.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-08 16:51:33 +00:00
mergify[bot]
180224114a
Fix RPC transaction method configs serialization ( #12100 ) ( #12102 )
...
(cherry picked from commit 9940870c89
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-09-08 06:12:26 +00:00
mergify[bot]
6a74bc1297
validator: Add --enable-bigtable-ledger-upload
flag (bp #12040 ) ( #12057 )
...
* Add --enable-bigtable-ledger-upload flag
(cherry picked from commit d8e2038dda
)
* Relocate BigTable uploader to ledger/ crate
(cherry picked from commit 91a56caed2
)
# Conflicts:
# ledger/Cargo.toml
* Cargo.lock
(cherry picked from commit 2b8a521562
)
* Add BigTableUploadService
(cherry picked from commit bc7731b969
)
* Add BigTableUploadService
(cherry picked from commit bafdcf24f5
)
* Add exit flag for bigtable upload operations
(cherry picked from commit d3611f74c8
)
* Remove dead code
(cherry picked from commit cd3c134b58
)
* Request correct access
(cherry picked from commit 4ba43c29ce
)
* Add LARGEST_CONFIRMED_ROOT_UPLOAD_DELAY
(cherry picked from commit b64fb295a1
)
* Resolve merge conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-05 17:09:32 +00:00
mergify[bot]
f44d9d770a
Rpc: add getMultipleAccounts endpoint (bp #12005 ) ( #12024 )
...
* Rpc: add getMultipleAccounts endpoint (#12005 )
* Add rpc endpoint to return the state of multiple accounts from the same bank
* Add docs
* Review comments: Dedupe account code, default to base64, add max const
* Add get_multiple_accounts to rpc-client
(cherry picked from commit b22de369b7
)
* Use new_response for consistency
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-09-03 19:52:46 +00:00
mergify[bot]
57f149e415
Ensure that the spl-token 2 native mint account is owned by the spl-token 2 program. ( #11974 )
...
Workaround for https://github.com/solana-labs/solana-program-library/issues/374 until spl-token 3 is shipped
(cherry picked from commit 7341e60043
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-01 18:16:22 +00:00
mergify[bot]
0811cb2966
Fix get_parsed_token_accounts ( #11907 ) ( #11909 )
...
(cherry picked from commit 60c7ac6f95
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-29 19:53:05 +00:00
mergify[bot]
bad0709ff1
Update to token pack/unpack changes (bp #11900 ) ( #11903 )
...
* Update to token pack/unpack changes (#11900 )
(cherry picked from commit 2eff9a19c3
)
# Conflicts:
# account-decoder/Cargo.toml
# core/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-29 05:46:07 +00:00
mergify[bot]
2a649e990d
Update spl-token to v2.0 (bp #11884 ) ( #11897 )
...
* Update spl-token to v2.0 (#11884 )
* Update account-decoder to spl-token v2.0
* Update transaction-status to spl-token v2.0
* Update rpc to spl-token v2.0
* Update getTokenSupply to pull from Mint directly
* Fixup to spl-token v2.0.1
(cherry picked from commit 76be36c9ce
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# core/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-28 23:36:53 +00:00
mergify[bot]
65f189d932
Rpc: Filter accounts with invalid mints from get_parsed_token_accounts ( #11844 ) ( #11859 )
...
* Filter out accounts with invalid mints from get_parsed_token_accounts
* Explicit docs
(cherry picked from commit 1988ee9cd6
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-26 19:02:48 +00:00
mergify[bot]
132550cd7a
RPC: Allow the sendTransaction preflight commitment level to be configured (bp #11792 ) ( #11794 )
...
* Allow the sendTransaction preflight commitment level to be configured
(cherry picked from commit b660704faa
)
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-22 16:41:25 +00:00
carllin
a9f914da8e
Cleanup test utilities ( #11766 )
...
* Add voting utility
* Add blockstore utility
Co-authored-by: Carl <carl@solana.com >
2020-08-21 06:52:01 +00:00
mergify[bot]
096375584b
Rpc: Return error if block does not exist ( #11743 ) ( #11749 )
...
* Return error if block does not exist
* Update docs
(cherry picked from commit 747f8d5877
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-20 23:26:55 +00:00
mergify[bot]
e41d9c87c5
Bump spl-token to clean up magic number (bp #11726 ) ( #11738 )
...
* Bump spl-token to clean up magic number (#11726 )
(cherry picked from commit 2fd2aceeb2
)
# Conflicts:
# account-decoder/Cargo.toml
# core/Cargo.toml
* Fix conflicts and toml order
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-20 18:02:28 +00:00
mergify[bot]
e41004f185
rpc: rework binary encoding. BREAKING CHANGE (bp #11646 ) ( #11674 )
...
* Add base64 (binary64) encoding for getConfirmedTransaction/getConfirmedBlock
(cherry picked from commit b5f3ced860
)
* decode-transaction now supports binary64
(cherry picked from commit 2ebc68a9e2
)
# Conflicts:
# cli/src/cli.rs
* Rework UiAccountData encode/decode such that it works from Rust
(cherry picked from commit 757e147b3b
)
# Conflicts:
# account-decoder/src/lib.rs
# cli/src/cli.rs
* Rename Binary64 to Base64. Establish Base58 encoding
(cherry picked from commit adc984a225
)
# Conflicts:
# account-decoder/src/lib.rs
* Remove "binary" encoding. Document "encoding" as required
(cherry picked from commit e5281157fa
)
* resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-18 02:53:10 +00:00
mergify[bot]
9015e47cc5
Rpc: Add until parameter for getConfirmedSignaturesForAddress2 ( #11644 ) ( #11648 )
...
* Refactor bigtable apis to accept start and end keys
* Make helper fn to deserialize cell data
* Refactor get_confirmed_signatures_for_address to use get_row_data range
* Add until param to get_confirmed_signatures_for_address
* Add until param to blockstore api
* Plumb until through client/cli
* Simplify client params
(cherry picked from commit 6c5b8f324a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-15 17:59:35 +00:00
mergify[bot]
8ee656edde
Return blockstore signatures-for-address despite bigtable error ( #11594 ) ( #11599 )
...
(cherry picked from commit b1e452f876
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-13 01:12:16 +00:00
mergify[bot]
1589a41178
Add config param to specify offset/length for single and program account info (bp #11515 ) ( #11518 )
...
* Add config param to specify offset/length for single and program account info (#11515 )
* Add config param to specify dataSlice for account info and program accounts
* Use match instead of if
(cherry picked from commit 88ca04dbdb
)
# Conflicts:
# cli/src/cli.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-11 00:03:18 +00:00
mergify[bot]
23a381b995
Fix parsing of spl-token Mint ( #11512 ) ( #11514 )
...
* Add failing test
* Fix jsonParsed mint
(cherry picked from commit da210ddd51
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-10 21:51:20 +00:00
mergify[bot]
3e483314b6
Decode native-program and sysvar accounts (bp #11463 ) ( #11485 )
...
* Decode native-program and sysvar accounts (#11463 )
* Pass pubkey in to account-decoder for sysvars
* Decode sysvar accounts
* Decode config accounts; move validator-info lower
* Decode stake accounts
* Review comments
* Stringify any account lamports and epochs that can be set to u64::MAX
(cherry picked from commit a9f76862fb
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-09 09:18:17 +00:00
mergify[bot]
8a67504578
Add Binary64 option for account data ( #11474 ) ( #11481 )
...
* Add Binary64 option for account data
* Decode into binary64
* Reword docs
(cherry picked from commit 068d23f298
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-08-09 06:50:24 +00:00
mergify[bot]
fa9aa0a1d7
Token Accounts: return ui_amount, decimals with decoded account ( #11407 ) ( #11453 )
...
* Return ui_amount, decimals from token client methods
* Return ui_amount, decimals in RPC jsonParsed token accounts
* Fixup docs
* Return ui_amount, decimals in pubsub jsonParsed token accounts
* Remove unnecessary duplicate struct
* StringAmount rename
(cherry picked from commit b7c2681903
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-07 19:05:35 +00:00
mergify[bot]
1a42a40492
RPC: Plug getConfirmedSignaturesForAddress2 into bigtable storage (bp #11395 ) ( #11406 )
...
* Plug getConfirmedSignaturesForAddress2 into bigtable storage
(cherry picked from commit 4222932e08
)
* Upgrade help description
(cherry picked from commit 9abb7db5f8
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-06 07:14:46 +00:00
mergify[bot]
5841e4d665
Long-term ledger storage with BigTable (bp #11222 ) ( #11392 )
...
* ledger-storage-bigtable boilerplate
(cherry picked from commit 9d2293bb32
)
* $ wget https://pki.goog/roots.pem -O pki-goog-roots.pem
(cherry picked from commit 1617a025ce
)
* Add access_token module
(cherry picked from commit 59d266a111
)
* Add root_ca_certificate
(cherry picked from commit faa016e4b7
)
* Add build-proto
(cherry picked from commit c31e1f5bf0
)
* UiTransactionEncoding is now copy
(cherry picked from commit 494968be66
)
* Increase timeout
(cherry picked from commit 57dfebc5ba
)
* Add build-proto/build.sh output
(cherry picked from commit 54dae6ba2c
)
* Supress doctest errors
(cherry picked from commit 019c75797d
)
* Add compression
(cherry picked from commit 243e05d59f
)
* Add bigtable
(cherry picked from commit 6e0353965a
)
* Add configuration info
(cherry picked from commit 98cca1e774
)
* Add ledger-tool bigtable subcommands
(cherry picked from commit f9049d6ee4
)
# Conflicts:
# ledger-tool/Cargo.toml
* Make room for tokio 0.2
(cherry picked from commit b876fb84ba
)
# Conflicts:
# core/Cargo.toml
* Setup a tokio 0.2 runtime for RPC usage
(cherry picked from commit 0e02740565
)
# Conflicts:
# core/Cargo.toml
* Plumb Bigtable ledger storage into the RPC subsystem
(cherry picked from commit dfae9a9864
)
# Conflicts:
# core/Cargo.toml
* Add RPC transaction history design
(cherry picked from commit e56ea138c7
)
* Simplify access token refreshing
(cherry picked from commit 1f7af14386
)
* Report block status more frequently
(cherry picked from commit 22c46ebf96
)
* after -> before
(cherry picked from commit 227ea934ff
)
* Rebase
* Cargo.lock
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-06 04:06:44 +00:00
mergify[bot]
888f3522d8
Add getConfirmedSignaturesForAddress2 RPC method (bp #11259 ) ( #11394 )
...
* Add getConfirmedSignaturesForAddress2 RPC method
(cherry picked from commit 1b2276520b
)
* Reimplement transaction-history command with getConfirmedSignaturesForAddress2
(cherry picked from commit 087fd32ce3
)
* Rework get_confirmed_signatures_for_address2
(cherry picked from commit a11f137810
)
* Rename startAfter to before
(cherry picked from commit 02c0981ecf
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-05 22:47:50 +00:00
Tyera Eulberg
86e3f96f16
Return token amounts as floats ( #11370 )
...
* Return token amounts as floats
* Floating-point equality
* Return float and raw token amounts
* Fix decimals and token rpcs for native-mint tokens
* Fixup docs and review comments
2020-08-05 06:48:09 +00:00
Trent Nelson
14339dec0a
Harden RPC preflight test inputs
2020-08-05 06:06:57 +00:00
Trent Nelson
e25846e1ad
Add failing test for unsane tx in RPC preflight
2020-08-05 06:06:57 +00:00
Tyera Eulberg
d0144ce382
Fix token rpc-client methods ( #11361 )
...
* Convert None to error in parse_keyed_accounts
* Allow encoding configuration in getTokenAccounts methods
2020-08-04 11:11:30 -06:00
Tyera Eulberg
0bc9bcc8b9
Fix bad rebase
2020-08-02 12:09:06 -06:00
Tyera Eulberg
d1b2e6cdf2
Add getTokenLargestAccounts endpoint ( #11322 )
2020-08-02 10:23:44 -06:00
Michael Vines
ffbd859c42
Update spl-token and spl-memo
2020-08-02 07:53:42 -07:00
Tyera Eulberg
9bcfc51df1
Add token rpc endpoints to rpc-client ( #11315 )
2020-07-31 20:53:49 +00:00
Michael Vines
c78e12a262
Avoid spl-sdk dependency, which inhibits crate publishing
2020-07-30 23:47:26 +00:00
Greg Fitzgerald
1d2426ddbc
Move simulate_transaction from rpc to bank ( #11294 )
2020-07-30 19:15:45 +00:00
Trent Nelson
a888f2f516
Reject TXs sent via RPC with no signatures
2020-07-30 00:07:33 -06:00
Trent Nelson
a7079e4dde
Dereplicode send_transaction and request_airdrop RPC handlers
2020-07-30 00:07:33 -06:00