e9c3f11d24
Remove native id check in pda creation (backport #19595 ) ( #19689 )
...
* Remove native id check in pda creation (#19595 )
(cherry picked from commit 529fefc7cc
)
# Conflicts:
# programs/bpf/rust/invoke/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-09-07 23:26:08 -07:00
57e87a09c0
Grammar nits ( #19703 ) ( #19706 )
...
* Grammar nits
* add Phantom to staking docs
(cherry picked from commit 590e113f16
)
Co-authored-by: Ryan M. Shea <8948187+rmshea@users.noreply.github.com >
2021-09-08 04:53:24 +00:00
a2b435916d
Fix handling of stale links to bpf-tools in cargo-build-bpf ( #17772 ) ( #19667 )
...
(cherry picked from commit 910ac94a8c
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-09-06 22:23:40 +00:00
ad66189463
Update web-wallets.md ( #19648 ) ( #19650 )
...
(cherry picked from commit f0be3e4ea9
)
Co-authored-by: bitkeepwallet <85662627+bitkeepwallet@users.noreply.github.com >
2021-09-05 16:21:32 +00:00
9a280426da
docs: fix typo ( #19646 ) ( #19647 )
...
(cherry picked from commit f68ca3895b
)
Co-authored-by: Zahin Mohammad <zahin.dev@gmail.com >
2021-09-04 18:48:36 +00:00
864006a78a
docs: fix typo ( #19641 ) ( #19644 )
...
(cherry picked from commit 497b6c152f
)
Co-authored-by: Zahin Mohammad <zahin.dev@gmail.com >
2021-09-04 17:21:20 +00:00
e37e46cfc2
update Telegram link at docs ( #19638 ) ( #19639 )
...
(cherry picked from commit 8352bc48db
)
Co-authored-by: Pierre/Long <pierreneter@gmail.com >
2021-09-04 08:30:27 +00:00
376b21c6e7
Tiny dedupe
2021-09-04 01:43:23 -06:00
fcda5d4a7d
Demote write locks on transaction program ids (backport #19593 ) ( #19633 )
...
* Demote write locks on transaction program ids (#19593 )
* Add feature
* Demote write lock on program ids
* Fixup bpf tests
* Update MappedMessage::is_writable
* Comma nit
* Review comments
(cherry picked from commit decec3cd8b
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/cost_model.rs
# core/src/cost_tracker.rs
# ledger-tool/src/main.rs
# program-runtime/src/instruction_processor.rs
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# rpc/src/transaction_status_service.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# sdk/benches/serialize_instructions.rs
# sdk/program/src/message/mapped.rs
# sdk/program/src/message/sanitized.rs
# sdk/src/transaction/sanitized.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-09-04 06:46:09 +00:00
2e4a2c15be
s/authorized_withdrawer_pubkey/authorized_withdrawer/
...
(cherry picked from commit f1ba759940
)
2021-09-03 22:07:58 -07:00
a8ec380c56
Rework authorized_withdrawer usage
...
(cherry picked from commit fa61b90796
)
2021-09-03 22:07:58 -07:00
afb87a386a
Removed the --authorized-withdrawer argument from create-vote-account
...
The parameter is now a required third argument. This is because authorized
withdrawer should never be the same as vote account keypair or validator
identity keypair for security reasons.
Added a --allow-unsafe-authorized-withdrawer to override this restriction if
necessary.
(cherry picked from commit e288459cf2
)
2021-09-03 22:07:58 -07:00
2d060fd2d9
Add RpcClient::get_multiple_accounts_with_config()
...
(cherry picked from commit ae43ca3bfb
)
2021-09-03 20:24:50 -07:00
c180f4c84e
stake: Advance credits_observed
on activation epoch (backport #19309 ) ( #19626 )
...
* stake: Advance `credits_observed` on activation epoch (#19309 )
* stake: Advance `credits_observed` on activation epoch
* Add test for merging stakes just after activation
(cherry picked from commit 2c3bdedea3
)
# Conflicts:
# runtime/src/bank.rs
* Fix merge issues
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-09-04 01:29:00 +00:00
105a89175c
Populate memo in blockstore signatures-for-address (backport #19515 ) ( #19605 )
...
* Populate memo in blockstore signatures-for-address (#19515 )
* Add TransactionMemos column family
* Traitify extract_memos
* Write TransactionMemos in TransactionStatusService
* Populate memos from column
* Dedupe and add unit test
(cherry picked from commit 5fa3e5744c
)
# Conflicts:
# ledger/src/blockstore.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-09-03 08:51:02 +00:00
959334d2e3
docs: update spl token exchange integration ( #19573 ) ( #19578 )
...
* docs: update spl token exchange integration
* Apply suggestions from code review
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit f4f14c42bb
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-09-02 18:36:04 +00:00
aa2098d115
Write helper for multithread update ( #18808 ) ( #19282 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2021-09-02 11:05:15 +00:00
37ee47c3e6
Add executor using the program's id during deploy ( #19555 ) ( #19572 )
...
(cherry picked from commit 622a6fba7f
)
Co-authored-by: Jack May <jack@solana.com >
2021-09-02 03:04:13 +00:00
4fb43bbd90
Fix tests that make assumptions about tx fee rate ( #19538 )
2021-08-31 22:02:20 -06:00
5fbcb10e6f
adds logs when push-vote panics with invalid vote-index ( #19485 ) ( #19521 )
...
In order to debug this panic on the clusters:
panicked at 'assertion failed: (vote_index as usize) <
MAX_LOCKOUT_HISTORY', core/src/cluster_info.rs:1012:9
(cherry picked from commit d7051b0d21
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-08-31 15:35:33 +00:00
6f86abf551
Populate memo in bigtable transaction structs ( #19512 ) ( #19514 )
...
* Populate memo in bigtable transaction structs
* Preface memos with len
(cherry picked from commit f4ae450f34
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-08-31 05:14:25 +00:00
744a69f818
Fix shreds-to-hours/days estimations ( #19477 ) ( #19503 )
...
(cherry picked from commit a3bef2e537
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-08-30 22:34:13 +00:00
1c6cac2054
fix typo in calling-between-programs developing documentation ( #19502 ) ( #19504 )
...
(cherry picked from commit d11b0abf11
)
Co-authored-by: Matthew Callens <callensmatt@gmail.com >
2021-08-30 20:04:39 +00:00
0c64bd0938
Improve terminology page (backport #18441 ) ( #19165 )
...
* Improve terminology page (#18441 )
Co-authored-by: Gregg Dourgarian <greggd@aidacreative.com >
Co-authored-by: Haskell FTW <HaskellFTW@protonmail.com >
(cherry picked from commit e7190cc727
)
# Conflicts:
# docs/src/terminology.md
* Fix conflict
Co-authored-by: Haik Dulgarian <greggd@tempworks.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-30 16:48:22 +00:00
f73a61d2ec
Bump version to 1.7.12
2021-08-27 16:24:24 +00:00
bdb77b0c98
Add missing owner check to bpf loader close ix ( #19460 ) ( #19470 )
...
(cherry picked from commit 4305d4b7b1
)
Co-authored-by: Justin Starry <justin@solana.com >
v1.7.11
2021-08-27 10:19:14 -06:00
58bef3a94b
Allow closing upgradeable program accounts (backport #19319 ) ( #19411 )
...
* Allow closing upgradeable program accounts (#19319 )
(cherry picked from commit a89f180145
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-27 08:56:51 +00:00
52dfb4a09c
Bump jsonrpc crates and remove old tokio (backport #18779 ) ( #19453 )
...
* Bump jsonrpc crates and remove old tokio (#18779 )
* Bump jsonrpc crates and replace old tokio
* Bump tokio
* getBlockTime
* getBlocks
* getBlocksWithLimit, getInflationReward
* getBlock
* getFirstAvailableBlock
* getTransaction
* getSignaturesForAddress
* getSignatureStatuses
* Remove superfluous runtime
(cherry picked from commit 8596db8f53
)
# Conflicts:
# Cargo.lock
# client/Cargo.toml
# core/Cargo.toml
# programs/bpf/Cargo.lock
# rpc/Cargo.toml
# rpc/src/rpc.rs
# validator/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-27 00:55:02 +00:00
c734db59cb
hash calculation adds really old slots to dirty_stores (backport #19434 ) ( #19451 )
...
* hash calculation adds really old slots to dirty_stores (#19434 )
(cherry picked from commit 98bc694606
)
* fix test compile error
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-08-26 22:44:25 +00:00
3b36e8e285
Add missing description for feature switch ( #19428 )
2021-08-25 18:24:28 +00:00
cdbc77bf97
Add parameter to allow setting max-retries for SendTransaction rpc (backport #19387 ) ( #19416 )
...
* Add parameter to allow setting max-retries for SendTransaction rpc (#19387 )
* Add parameter to cap rpc send retries for a tx
* Add parameter to docs
(cherry picked from commit 7482861f4b
)
# Conflicts:
# banks-server/src/banks_server.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-25 07:23:03 +00:00
8ab358ce78
Preserve pre-existing vote/stake keypairs for bootstrap validator ( #19405 ) ( #19410 )
...
(cherry picked from commit d559426373
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-08-24 23:44:06 +00:00
5193ba2062
Document more RpcClient methods (backport #19236 ) ( #19390 )
...
* Document more RpcClient methods (#19236 )
* Document more RpcClient methods
* Update client/src/rpc_client.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update RpcClient docs per feedback
* Address review feedback
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 628ad58912
)
# Conflicts:
# client/src/mock_sender.rs
* Fix conflicts
* Restore previous methods for docs
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-24 15:46:56 +00:00
7e5767f926
Bump crossbeam-epoch (backport #19378 ) ( #19389 )
...
* Bump to get off yanked crate (#19378 )
(cherry picked from commit 82ea4891fd
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-24 03:10:55 +00:00
e5e6829d20
Update crossbeam-deque to 0.8.1 ( #19361 ) ( #19382 )
...
(cherry picked from commit 2ccbe471ae
)
2021-08-24 00:21:25 +00:00
3976816b79
Correct JSON-RPC docs for getSlot ( #19355 ) ( #19356 )
...
* Correct JSON-RPC docs for getSlot
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 9483866e0b
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-08-21 00:55:11 +00:00
9732157f0c
Only encode data with <128 bytes in base58 ( #19317 ) ( #19351 )
...
* Only encode data with <128 bytes in bs58
* Use same MAX_BS58_BYTES const in rpc
* Fix test
* Spell out base
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit 967746abbf
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-08-21 00:32:30 +00:00
ed18d6d38d
Remove tar-rs audit ignore ( #19344 ) ( #19352 )
...
(cherry picked from commit 17978c2ff4
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-08-20 22:21:04 +00:00
ef336a44a1
change untar to use unpack instead of unpack_in (backport #19216 ) ( #19340 )
...
* change untar to use unpack instead of unpack_in (#19216 )
* change untar to use unpack instead of unpack_in
* hacky, but maybe passes tests
* chore: bump tar from 0.4.35 to 0.4.37
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.35 to 0.4.37.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.35...0.4.37 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* cleanup
* cleanup, add validate_inside_dst
* collapse use
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* delete comment line
* add comments
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 89a31ff473
)
# Conflicts:
# Cargo.lock
# download-utils/Cargo.toml
# install/Cargo.toml
# programs/bpf/Cargo.lock
# runtime/Cargo.toml
# sdk/cargo-build-bpf/Cargo.toml
* Fix conflicts
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-20 17:13:35 +00:00
de5f503a76
Add note about ASK keyword to paper wallet doc ( #19330 ) ( #19343 )
...
* Add note about ASK keyword to paper wallet doc
Per https://github.com/solana-labs/solana/issues/17325#issuecomment-844434585 , this change adds a note to the paper wallet docs mentioning the use of the `ASK` keyword.
Also specifes that the `solana-keygen pubkey prompt://` command returns a derived bip44 base address.
(I'm new to Solana development and this was a point of confusion for me, only resolved by finding this issue)
* Update docs/src/wallet-guide/paper-wallet.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 3be5715f45
)
Co-authored-by: Brent Fitzgerald <burnto@gmail.com >
2021-08-20 15:20:09 +00:00
b5b1ed2a55
stake: Remove v2 program references (backport #19308 ) ( #19336 )
...
* stake: Remove v2 program references (#19308 )
* stake: Remove v2 program references
* Remove stake v2 feature, along with stake rewrite
(cherry picked from commit 73aa004c59
)
# Conflicts:
# runtime/src/bank.rs
* Fix merge conflict
* Fix uses of old `stake` function
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-08-20 07:32:24 +00:00
caea9c99cd
Minimize trust (backport #19279 ) ( #19335 )
...
* docs: Mainnet Beta inflation has been enabled for quite some time
(cherry picked from commit 169ded9a70
)
* validator: Trusted validators are now called known validators
(cherry picked from commit e0bc5fa690
)
* docs: trust minimize
(cherry picked from commit 40613161a0
)
* docs: correct known validator operator
(cherry picked from commit eced50d103
)
* docs: Remove decommissioned testnet archetype validator
(cherry picked from commit a587eec20b
)
* docs: update devnet start args with new validators
(cherry picked from commit 2a877ae06e
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-08-20 06:24:43 +00:00
1495b94f7a
discards epoch-slots epochs ahead of the current root ( #19256 ) ( #19328 )
...
Cross cluster gossip contamination is causing cluster-slots hash map to
contain a lot of bogus values and consume too much memory:
https://github.com/solana-labs/solana/issues/17789
If a node is using the same identity key across clusters, then these
erroneous values might not be filtered out by shred-versions check,
because one of the variants of the contact-info will have matching
shred-version:
https://github.com/solana-labs/solana/issues/17789#issuecomment-896304969
The cluster-slots hash-map is bounded and trimmed at the lower end by
the current root. This commit also discards slots epochs ahead of the
root.
(cherry picked from commit 563aec0b4d
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-08-19 23:35:34 +00:00
f55bb78307
updates cluster-slots with root-bank instead of root-slot + bank-forks (backport #19058 ) ( #19324 )
...
* removes unused code from cluster-slots
(cherry picked from commit 2fc112edcf
)
# Conflicts:
# core/src/cluster_slots.rs
* updates cluster-slots with root-bank instead of root-slot + bank-forks
ClusterSlots::update is taking both root-slot and bank-forks only to
later lookup root-bank from bank-forks, which is redundant. Also
potentially by the time bank-forks is locked to obtain root-bank,
root-slot may have already changed and so be inconsistent with the
root-slot passed in as the argument.
https://github.com/solana-labs/solana/blob/6d95d679c/core/src/cluster_slots.rs#L32-L39
https://github.com/solana-labs/solana/blob/6d95d679c/core/src/cluster_slots.rs#L122
(cherry picked from commit 40914de811
)
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-08-19 20:52:41 +00:00
fa5a71dbf0
ci: pin patched solana crates version for downstream project builds ( #19322 )
...
(cherry picked from commit b59b557163
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-08-19 15:58:24 +00:00
80a6479c47
Enable booting testnet validators without tower required (backport #19298 ) ( #19306 )
...
* Enable booting testnet validators without tower required (#19298 )
(cherry picked from commit 7d135f185c
)
# Conflicts:
# net/net.sh
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-19 06:37:17 +00:00
a492de1bea
Plumb accounts-db-skip-shrink through testnet scripts (backport #19290 ) ( #19303 )
...
* Plumb accounts-db-skip-shrink through testnet scripts (#19290 )
(cherry picked from commit 1d375ff2da
)
# Conflicts:
# multinode-demo/bootstrap-validator.sh
# multinode-demo/validator.sh
# net/net.sh
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-19 01:14:06 +00:00
43b414b0df
RPC: add option to exclude accounts from get_supply (backport #19270 ) ( #19283 )
...
* RPC: add option to exclude accounts from get_supply (#19270 )
(cherry picked from commit c053df143f
)
# Conflicts:
# rpc/src/rpc.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-18 20:22:06 +00:00
6f31882260
Fix memoverlap check (backport #19232 ) ( #19259 )
...
* Fix memoverlap check (#19232 )
(cherry picked from commit 9be988db41
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* Resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-08-18 18:07:36 +00:00
5042808ecf
Expose genesis block time via rpc (backport #19267 ) ( #19277 )
...
* Expose genesis block time via rpc (#19267 )
* Expose genesis_creation_time from Bank
* Backfill genesis_creation_time for block/block-time requests of slot 0
(cherry picked from commit c167211611
)
# Conflicts:
# rpc/src/rpc.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-18 00:19:59 +00:00