mergify[bot]
41ab35fc9b
Refactor SignerSource to expose DerivationPath to other kinds of signers (backport #16933 ) ( #16940 )
...
* Refactor SignerSource to expose DerivationPath to other kinds of signers (#16933 )
* One use statement
* Add stdin uri scheme
* Convert parse_signer_source to return Result
* A-Z deps
* Convert Usb data to Locator
* Pull DerivationPath out of Locator
* Wrap SignerSource to share derivation_path
* Review comments
* Check Filepath existence, readability in parse_signer_source
(cherry picked from commit d6f30b7537
)
# Conflicts:
# Cargo.lock
# clap-utils/src/memo.rs
# remote-wallet/src/locator.rs
# sdk/Cargo.toml
* Fix conflicts
* Fix legacy compile test
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-29 17:14:37 +00:00
mergify[bot]
9cca79090c
Refactor remote-wallet path parsing (backport #16798 ) ( #16893 )
...
* SDK: More conversions for `Pubkey`
(cherry picked from commit 9b7120bf73
)
* SDK: More conversion for `DerivationPath`
(cherry picked from commit 722de942ca
)
* remote-wallet: Add helpers for locating remote wallets
(cherry picked from commit 64fcb792c2
)
# Conflicts:
# Cargo.lock
* remote-wallet: Plumb `Locator` into `RemoteWalletInfo`
(cherry picked from commit 3d12be29ec
)
# Conflicts:
# remote-wallet/src/ledger.rs
* remote-wallet: `derivation-path` crate doesn't like empty trailing child indexes
(cherry picked from commit 4ce4f04c58
)
* remote-wallet: Move `Locator` to its own module
(cherry picked from commit cac666d035
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-28 04:20:19 +00:00
mergify[bot]
bd8e3182ae
requires stakes for propagating crds values through gossip (backport #15561 ) ( #16773 )
...
* requires stakes for propagating crds values through gossip (#15561 )
(cherry picked from commit f2865dfd63
)
# Conflicts:
# core/src/cluster_info.rs
# sdk/src/feature_set.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-04-23 17:55:15 +00:00
mergify[bot]
e5460f97ad
Remove unactivated ristretto syscall (backport #16727 ) ( #16744 )
...
* Remove unactivated ristretto syscall (#16727 )
(cherry picked from commit be4df39a4c
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/ristretto/Cargo.toml
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-04-22 21:45:18 +00:00
mergify[bot]
80d6a5aa9d
Wrap derivation_path::DerivationPath (backport #16609 ) ( #16650 )
...
* Wrap derivation_path::DerivationPath (#16609 )
* Replace custom DerivationPath impl
* Add method to parse full-path from str with hardening
* Convert Bip44 to trait
* Hoist more work on derivation-path
* Privatize Bip44 trait
(cherry picked from commit 185bbf2db5
)
# Conflicts:
# programs/bpf/Cargo.lock
* Fix conflict
* Make derivation-path optional for legacy bpf build
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-20 22:14:56 +00:00
Michael Vines
7f2977a3b0
Bump version to 1.5.20
2021-04-20 17:04:26 +00:00
Kristofer Peterson
7df2525972
Refactored ShortU16Visitor::visit_seq() to reject overflows, extra leading zeros and ensure one-to-one encoding.
2021-04-20 03:01:52 -06:00
Trent Nelson
90543940bd
sdk: ShortU16 - rename variables for clarity
...
ShortU16's implementation embeds its usage as the length of a
ShortVec, confusingly referring to both a 'len' and a 'size'
at the same time.
2021-04-20 03:01:52 -06:00
Trent Nelson
dd21f20555
sdk: Add ShortU16 deser test
2021-04-20 03:01:52 -06:00
Trent Nelson
b5894515e8
perf: use saturating/checked integer arithmetic
2021-04-19 23:05:26 -07:00
mergify[bot]
63224bd11e
Move derivation path into sdk (backport #16603 ) ( #16606 )
...
* Move derivation path into sdk (#16603 )
* Move DerivationPath to sdk
* Remove eprintln
(cherry picked from commit 52f4b96a80
)
* Fix legacy compile test
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-17 05:57:03 +00:00
mergify[bot]
8beaa43e6e
Feature-gate hash-based duplicate transaction check ( #16600 )
...
(cherry picked from commit 285f3c9d56
)
# Conflicts:
# sdk/src/feature_set.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-16 20:23:33 +00:00
mergify[bot]
ef3c33ad06
Remove blake3 from bpf program dependencies ( #16506 ) ( #16528 )
...
(cherry picked from commit f641429056
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-14 03:22:12 +00:00
Justin Starry
02762ff785
v1.5: Use blake3 message hash in status cache ( #16513 )
...
* v1.5: Use blake3 message hash in status cache
* bump bpf ix count
2021-04-14 09:52:24 +08:00
mergify[bot]
11ab894256
[easy, cleanup] Simplify some pattern-matches (bp #16402 ) ( #16445 )
...
* Simplify some pattern-matches (#16402 )
When those match an exact combinator on Option / Result.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
(cherry picked from commit b08cff9e77
)
# Conflicts:
# accounts-cluster-bench/src/main.rs
# core/src/rpc.rs
# runtime/src/accounts_hash.rs
# runtime/src/message_processor.rs
* Fix conflicts
Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-08 20:01:20 +00:00
Trent Nelson
c32bd40aa4
Bump version to v1.5.19
2021-04-01 20:23:50 +00:00
Tyera Eulberg
ac4722afd7
Bump version to 1.5.18
2021-03-29 23:00:20 -07:00
mergify[bot]
9ded0bdc03
Allow incomplete features in frozen-abi ( #16204 )
...
(cherry picked from commit 9ba9d2a8ae
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-30 05:33:15 +00:00
Justin Starry
b2cee2753d
Print the rust version when building bpf programs ( #16181 ) ( #16203 )
2021-03-30 03:32:16 +00:00
Tyera Eulberg
72ff8973a2
Revert "Print the rust version when building bpf programs ( #16181 ) ( #16182 )" ( #16200 )
...
This reverts commit cc7342a8ef
.
2021-03-29 15:00:25 -06:00
mergify[bot]
cc7342a8ef
Print the rust version when building bpf programs ( #16181 ) ( #16182 )
...
(cherry picked from commit abada56ba1
)
# Conflicts:
# sdk/bpf/scripts/install.sh
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-29 20:00:23 +08:00
mergify[bot]
fb08b41513
Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (bp #16142 ) ( #16159 )
...
* Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (#16142 )
* Add Blockstore block and tx apis that allow unrooted responses
* Add TransactionStatusMessage, and send on bank freeze; also refactor TransactionStatusSender
* Track highest slot with tx-status writes complete
* Rename and unpub fn
* Add commitment to GetConfirmed input configs
* Support confirmed blocks in getConfirmedBlock
* Support confirmed txs in getConfirmedTransaction
* Update sigs-for-addr2 comment
* Enable confirmed block in cli
* Enable confirmed transaction in cli
* Review comments
* Rename blockstore method
(cherry picked from commit 433f1ead1c
)
# Conflicts:
# core/src/replay_stage.rs
# core/src/rpc.rs
# core/src/validator.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-03-27 05:45:00 +00:00
mergify[bot]
4e6d175697
Simplify account.rent_epoch handling for sysvar rent (bp #16049 ) ( #16117 )
...
* Simplify account.rent_epoch handling for sysvar rent (#16049 )
* Add some code for special local testing
* Add comment to store_account_and_update_capitalization
* Simplify account.rent_epoch handling for sysvar rent
* Introduce *_for_test functions
* Add deprecation messages to existing api
(cherry picked from commit 6d5c6c17c5
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# programs/stake/src/stake_instruction.rs
# programs/vote/src/vote_instruction.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# runtime/src/system_instruction_processor.rs
# sdk/benches/slot_hashes.rs
# sdk/benches/slot_history.rs
# sdk/src/account.rs
# sdk/src/keyed_account.rs
# sdk/src/native_loader.rs
# sdk/src/recent_blockhashes_account.rs
* Fix conflicts
* rustfmt
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-03-25 18:12:33 +09:00
mergify[bot]
173ca7b448
program: Correct clamp in Message::signer_keys() ( #16113 )
...
(cherry picked from commit 8b3de72e2a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-25 06:41:14 +00:00
Tyera Eulberg
f356a05e96
Bump version to 1.5.17 ( #16043 )
2021-03-19 18:56:05 -06:00
mergify[bot]
57833a36e3
Santize instruction index when loading instruction from sysvar ( #15942 ) ( #16003 )
...
(cherry picked from commit 4c5660ba7a
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-19 13:25:39 +08:00
mergify[bot]
e0119e7de7
Close buffer accounts (bp #15887 ) ( #15971 )
...
* Add Close instrruction and tooling to upgradeable loader (#15887 )
(cherry picked from commit 7f500d610c
)
# Conflicts:
# cli/src/program.rs
# programs/bpf_loader/src/lib.rs
* resolve conflicts
* slice fill not supported on older rust
Co-authored-by: Jack May <jack@solana.com >
2021-03-18 07:33:40 +00:00
mergify[bot]
eed62bc408
Add helper for paring down signers to those requried by a tx message (bp #15899 ) ( #15937 )
...
* sdk: Add accessor for signer pubkeys of a tx message
(cherry picked from commit bf33ce8906
)
* clap-utils: Add helper to `CliSignerInfo` for getting signers for a message
(cherry picked from commit 4e99f1e634
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-17 05:22:40 +00:00
Michael Vines
be05c8b121
Bump version to 1.5.16
2021-03-16 13:29:52 -07:00
mergify[bot]
9bd3773934
nit: fix spelling ( #15908 ) ( #15910 )
...
(cherry picked from commit 5760cf0f41
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-16 11:51:15 -07:00
mergify[bot]
999f81c56d
Charge compute budget for bytes passed via cpi (bp #15874 ) ( #15904 )
...
* Charge compute budget for bytes passed via cpi (#15874 )
(cherry picked from commit ad9901d7c6
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
# sdk/src/process_instruction.rs
* fix conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-03-16 18:47:40 +00:00
Michael Vines
22ca850ce7
Add AccountSharedData stub for forwards compatibility with the v1.6 release line
2021-03-16 11:36:10 -07:00
mergify[bot]
191e51b01d
Wallclock BankingStage Throttle ( #15731 ) ( #15889 )
...
(cherry picked from commit c1ba265dd9
)
Co-authored-by: carllin <carl@solana.com >
2021-03-16 08:40:03 +00:00
Michael Vines
9a151259b2
=1.5.15
2021-03-16 00:32:15 -07:00
Michael Vines
39a2fbe2bf
Add Instruction::new_with_bincode
...
Programs can now prepare for the deprecation of `Instruction::new` in v1.6
2021-03-16 05:21:33 +00:00
mergify[bot]
4c3bfcaedf
Remove old feature: simple_capitalization (bp #15763 ) ( #15814 )
...
* Remove old feature: simple_capitalization (#15763 )
* Remove old feature: simple_capitalization
* Fix another failing test in core
* Finish up test cleanup
* Further clean up a bit
(cherry picked from commit 4bbeb9c033
)
# Conflicts:
# runtime/src/accounts_db.rs
# runtime/src/bank.rs
* Fix conflicts
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-03-12 05:21:55 +00:00
mergify[bot]
6e214bbc04
Docs fixups (bp #15801 ) ( #15802 )
...
* docs: add docs links for crates published to crates.io
(cherry picked from commit 24d18b3cf2
)
# Conflicts:
# core/Cargo.toml
# measure/Cargo.toml
# programs/bpf/rust/finalize/Cargo.toml
* docs: add rust client api entry
(cherry picked from commit 3e6c7c4a3e
)
* docs: rename 'deployed programs' section to 'on-chain programs'
(cherry picked from commit 0e452c8d91
)
* docs: 'builtins' -> 'runtime facilities'
(cherry picked from commit 9c8be34906
)
* docs: stabilize spl token jsonrpc methods
(cherry picked from commit 45190f6281
)
* docs: deprecate lastvalidslot field of jsonrpc getfees
(cherry picked from commit c4ee1ab710
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-11 21:49:14 +00:00
mergify[bot]
e777436cfd
sdk: add macro for unchecked div with const denominator ( #15803 )
...
(cherry picked from commit 79ac1997de
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-11 10:03:30 +00:00
mergify[bot]
58a9639810
Add tracer key for tracing transaction path through the network ( #15732 ) ( #15771 )
...
(cherry picked from commit 2bee9435f3
)
Co-authored-by: carllin <carl@solana.com >
2021-03-09 04:44:16 +00:00
Tyera Eulberg
9fbc03d517
Bump version to 1.5.15 ( #15768 )
2021-03-09 01:48:54 +00:00
mergify[bot]
7f1368e792
Remove old feature: cumulative_rent_related_fixes (bp #15754 ) ( #15757 )
...
* Remove old feature: cumulative_rent_related_fixes (#15754 )
(cherry picked from commit 8b0c6db871
)
# Conflicts:
# runtime/src/accounts.rs
# runtime/src/bank.rs
# sdk/src/feature_set.rs
* Fix conflicts
* Remove stale comment
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-03-08 12:34:08 +09:00
mergify[bot]
30781bb7b1
consolidate DEFAULT_HASHES_PER_TICK ( #14463 ) ( #15748 )
...
(cherry picked from commit 773b21b34e
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-03-06 02:59:43 +00:00
Michael Vines
d3672ca23b
Bump version to 1.5.14
2021-03-03 19:01:25 -08:00
Michael Vines
6242809a07
Bump version to 1.5.13
2021-03-03 21:51:34 +00:00
mergify[bot]
9d00220d88
Remove unnecessary packet meta abi lock ( #15653 ) ( #15665 )
...
(cherry picked from commit b8e28b8c55
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-03 10:52:51 +00:00
mergify[bot]
a00cbb55b9
Add error reporting to system program ( #15644 ) ( #15650 )
...
(cherry picked from commit a9c8dbfd0c
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-02 22:41:07 -08:00
Jack May
c22b83aa6c
resolve conflicts
2021-03-02 18:05:11 -08:00
Jack May
9387ee6f3b
configure rust-bpf toolchain for each tree ( #15620 )
...
(cherry picked from commit 4789a13a6e
)
# Conflicts:
# sdk/bpf/scripts/install.sh
2021-03-02 18:05:11 -08:00
sakridge
fa7067950a
Update version to v1.5.11 ( #15574 )
2021-02-27 04:27:54 +00:00
mergify[bot]
7d67f5b18c
check program owners ( #15495 ) ( #15568 )
...
* check program owners
* BankSlotDelta should change because InstructionError variant added
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit 8399851d11
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-02-26 23:34:55 +00:00