Commit Graph

12955 Commits

Author SHA1 Message Date
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
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
ffe2f96a58 Fix handling of invoked ix accounts in program-test (#16170) (#16175)
(cherry picked from commit 27ab415ecc)

Co-authored-by: Justin Starry <justin@solana.com>
2021-03-29 07:00:53 +00:00
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
579575fe84 Add timeout for local cluster partition tests (bp #16123) (#16136)
* Add timeout for local cluster partition tests (#16123)

* Add timeout for local cluster partition tests

* fix optimistic conf test logs

* Bump instruction count assertions

(cherry picked from commit e817a6db00)

# Conflicts:
#	local-cluster/Cargo.toml
#	local-cluster/tests/local_cluster.rs
#	programs/bpf/tests/programs.rs

* Fix conflicts

* Revert instruction count assertion changes

Co-authored-by: Justin Starry <justin@solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-26 00:15:08 +00:00
0bb95b470f clap-utils: Allow NullSigners outside sign-only mode (#16115)
(cherry picked from commit 7f0ac6a67c)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-25 17:48:41 +00:00
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
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
fc36a0c5ba Support getBlockTime for unfinalized blocks (#16103) (#16109)
(cherry picked from commit a8ef29df27)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-25 06:05:41 +00:00
3317a14bd5 rpc: add getSlotLeaders method (#16057) (#16078)
(cherry picked from commit e7fd7d46cf)

Co-authored-by: Justin Starry <justin@solana.com>
2021-03-24 03:20:57 +00:00
64a754f610 Handle blockstore insert dup checks (#16051) (#16065)
(cherry picked from commit d76ad33597)

Co-authored-by: carllin <carl@solana.com>
2021-03-23 05:19:05 +00:00
734a4e39f7 Add stub --allow-unfunded-recipient argument for forward compatibility with v1.6 2021-03-22 13:45:22 -07:00
f356a05e96 Bump version to 1.5.17 (#16043) 2021-03-19 18:56:05 -06:00
c3c4ce48af Make getStakeActivation response consistent for undelegated accounts (#16039) v1.5.16 2021-03-19 15:51:40 -06:00
452663a99a Remove read only locks when they hit ref count zero, cleanup accounts locking (#15449) (#16006)
(cherry picked from commit 9a7cd8885d)

Co-authored-by: carllin <carl@solana.com>
2021-03-19 20:59:18 +00:00
c0d27503ce docs: SIGUSR1 killing wrapper shell scripts (#16008)
(cherry picked from commit 07dc522981)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-19 07:30:14 +00:00
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
e58365a160 cli cleanup (#15990) (#15996)
(cherry picked from commit 067b390194)

Co-authored-by: Jack May <jack@solana.com>
2021-03-18 21:02:59 +00:00
a5f8635fdc rpc: Add config options limiting getConfirmedBlock response data (bp #15970) (#15994)
* rpc: Add config options limiting getConfirmedBlock response data (#15970)

* Add new confirmed block struct

* Add RpcConfirmedBlockConfig options

* Configure block response based on new options

* Add client api, use in cli fetch_epoch_rewards

* Update docs

* Apply review suggestions

(cherry picked from commit aa54c468ea)

# Conflicts:
#	core/src/rpc.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-18 20:51:53 +00:00
de8df24203 Avoid panic when validator doesn't have performance samples (#15976) (#15980)
(cherry picked from commit ba33c9e18e)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-18 09:22:02 +00:00
ea1312ab0b remote-wallet: Expose Ledger app settings (#15977)
(cherry picked from commit 2dabcac0da)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-18 09:07:24 +00:00
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
9c596cfd6c Allow unbounded wallclock processing time in tests (#15961) (#15965)
(cherry picked from commit f548a04fae)

Co-authored-by: carllin <carl@solana.com>
2021-03-18 00:09:08 +00:00
e4032ec87f Ignore flaky test_banking_stage_entries_only and test_banking_stage_entryfication (#15958)
(cherry picked from commit 8a9b51952e)

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-03-17 20:25:13 +00:00
e3bab5a987 Revert to removing only tmp-
(cherry picked from commit a5d144b00f)
2021-03-17 11:13:42 -07:00
5f426ee2dc Revert to snapshots 2
(cherry picked from commit 20b53eb4b4)
2021-03-17 11:13:42 -07:00
a76426514e Revert to snapshots
Co-authored-by: Michael Vines <mvines@gmail.com>
(cherry picked from commit 0b42379ed7)
2021-03-17 11:13:42 -07:00
4c48740647 add missed suggestion
(cherry picked from commit a43b3674c7)
2021-03-17 11:13:42 -07:00
d9c7f78717 Apply suggestions from code review
Co-authored-by: Michael Vines <mvines@gmail.com>
(cherry picked from commit cfb01e26dd)
2021-03-17 11:13:42 -07:00
305fbe38e9 Add option for separate snapshot location
(cherry picked from commit 6126878f509c69e23480a5ec22b3271e2b16e072)
(cherry picked from commit 0209d334bd)
2021-03-17 11:13:42 -07:00
a6b7cc202a Download snapshot files with a tmp- prefix so they'll automatically be cleaned up if interrupted
(cherry picked from commit 58b980f9cd)
2021-03-17 10:18:14 -07:00
3584a764f9 Replace solana-program-test when building example-helloworld 2021-03-17 09:09:08 -07:00
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
6a334a8bef CLI: Support dumping the TX message in sign-only mode (#15932)
(cherry picked from commit 672e9c640f)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-17 04:41:08 +00:00
be05c8b121 Bump version to 1.5.16 2021-03-16 13:29:52 -07:00
9bd3773934 nit: fix spelling (#15908) (#15910)
(cherry picked from commit 5760cf0f41)

Co-authored-by: Jack May <jack@solana.com>
v1.5.15
2021-03-16 11:51:15 -07:00
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
1967b90489 fix: compute pre/post token balances on all accounts if token program present (#15900) (#15922)
* fix: compute pre/post token balances on all accounts if token program present

* fix: skip token program in balance query

* fix: prevent program ids from being collected

(cherry picked from commit 61112d4826)

Co-authored-by: Josh <josh.hundley@gmail.com>
2021-03-16 18:46:53 +00:00
22ca850ce7 Add AccountSharedData stub for forwards compatibility with the v1.6 release line 2021-03-16 11:36:10 -07:00
824daab8f6 Cli: better estimate of epoch time elapsed/remaining (bp #15893) (#15917)
* Cli: better estimate of epoch time elapsed/remaining (#15893)

* Add rpc_client api for getRecentPerformanceSamples

* Prep fn for variable avg slot time

* Use recent-perf-samples to more-accurately estimate epoch completed times

* Spell out average

(cherry picked from commit 3726358f51)

# Conflicts:
#	cli-output/src/cli_output.rs

* Fix conflict

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-16 17:59:31 +00:00
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
0de081c776 Pin solana crate versions to prevent downstream users from accidentally mixing crate versions 2021-03-16 00:32:15 -07:00
9a151259b2 =1.5.15 2021-03-16 00:32:15 -07:00
3da1f67d40 Build full SPL in CI 2021-03-15 23:30:35 -07:00
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
7a08d47588 Export tokio for program-test clients (#15894)
(cherry picked from commit 430ed6d774)

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-03-16 05:03:03 +00:00
3f3f3bb443 increment_cargo_version.sh tune ups (bp #15880) (#15891)
* Disallow version bump with dirty working tree

(cherry picked from commit 853e735edf)

* Ignore `not_paths` for `*.md` files when bumping version

(cherry picked from commit 510760d81b)

* Also ignore `*/node_modules/*` paths when bumping version

(cherry picked from commit 2bf46b789f)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-16 01:58:15 +00:00
e2f893d743 Fix real_number_string_trimmed zero-decimal behavior (#15873) (#15876)
* Add failing test

* Don't strip zeroes from zero-decimal amounts

* Add zero-case test

(cherry picked from commit c40bd5f394)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-15 23:45:36 +00:00
1a66968126 Update cargo lock files on version bump 2021-03-15 20:54:55 +00:00
437f0bb8c6 Rpc: support extended config for getConfirmedBlock (bp #15827) (#15832)
* Rpc: support extended config for getConfirmedBlock (#15827)

* Add rpc confirmed-block config wrapper to support struct of extended config

* Update docs

* Make config wrapper generic and use in getConfirmedTransaction as well

* Update/clean confirmed-tx docs

(cherry picked from commit 5b2da19c93)

# Conflicts:
#	core/src/rpc.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-13 00:02:26 +00:00