85750307aa
Rename Client methods to match proposed BanksClient (bp #10793 ) ( #10800 )
...
* Rename Client methods to match proposed BanksClient (#10793 )
(cherry picked from commit 7ade330b23
)
# Conflicts:
# programs/bpf/tests/programs.rs
# runtime/benches/bank.rs
* Fix merge
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-25 05:33:12 +00:00
55b92c16da
Remove fee-payer guesswork from Message and Transaction (bp #10776 ) ( #10785 )
...
* Remove fee-payer guesswork from Message and Transaction (#10776 )
* Make Message::new_with_payer the default constructor
* Remove Transaction::new_[un]signed_instructions
These guess the fee-payer instead of stating it explicitly
(cherry picked from commit 1c498369b5
)
# Conflicts:
# cli/src/nonce.rs
# core/src/rpc.rs
# ledger/src/blockstore.rs
# programs/bpf/tests/programs.rs
* Fix merge
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-25 01:10:23 +00:00
ccb7b1a698
Bump cargo version to v1.2.7
2020-06-24 09:23:12 -07:00
2d94c09aee
Bump Cargo.toml version to 1.2.6
2020-06-22 23:23:16 -07:00
bbe4990e80
Move SDK types to more appropriate files (bp #10638 ) ( #10665 )
...
* Move types to more appropriate files (#10638 )
(cherry picked from commit dac7dc2f10
)
# Conflicts:
# programs/stake/src/stake_instruction.rs
# programs/vote/src/vote_instruction.rs
# sdk/src/system_instruction.rs
* Fix conflicts
* bump lock
Co-authored-by: Jack May <jack@solana.com >
2020-06-18 18:17:43 +00:00
4b33a2a1b8
Update Cargo.toml version from 1.2.4 to 1.2.5
2020-06-17 18:55:20 -07:00
58e6a5c281
Add docs to declare_id macro ( #10673 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-17 19:19:06 -06:00
dbda50941a
Bump version to 1.2.4
2020-06-16 17:03:09 -07:00
2500881e0b
Bump version to v1.2.3
2020-06-14 09:58:10 -07:00
c47a6e12c7
Improve BPF SDK dependency caching ( #10434 ) ( #10513 )
...
(cherry picked from commit 97f9b63507
)
Co-authored-by: Jack May <jack@solana.com >
2020-06-12 15:36:35 -07:00
a8f4c4e297
Bump version to 1.2.2
2020-06-11 20:45:13 -07:00
953eadd983
Expose last-valid-slot to BankClient and ThinClient users ( #10478 ) ( #10483 )
...
automerge
2020-06-10 08:43:37 -07:00
055f808f98
Clean up delinquency slot distance computation ( #10479 )
...
automerge
2020-06-09 14:22:37 -07:00
f7aee67023
RPC simulateTransaction endpoint now returns program log output ( #10432 ) ( #10444 )
...
automerge
2020-06-06 11:57:24 -07:00
56e8319a6d
Add built-in programs to InvokeContext ( #10383 ) ( #10402 )
...
automerge
2020-06-03 14:25:16 -07:00
800b65b2f6
Cleanup program docs ( #10283 ) ( #10360 )
...
automerge
2020-06-02 03:32:09 -07:00
5a91db6e62
Program address nits (bp #10261 ) ( #10262 )
...
automerge
2020-05-31 09:05:37 -07:00
163217815b
Improve Rpc inflation tooling (bp #10309 ) ( #10322 )
...
automerge
2020-05-29 14:09:41 -07:00
93e4ed1f75
Include GenesisConfig inflation in Display ( #10282 ) ( #10289 )
...
automerge
2020-05-28 00:21:58 -07:00
ace711e7f1
Bump version to 1.2.1
2020-05-26 19:07:35 -07:00
8c8e2c4b2b
Prevent privilege escalation ( #10232 ) ( #10247 )
...
automerge
2020-05-26 02:39:28 -07:00
4fc86807ff
Re-enable move in docker-solana ( #10214 ) ( #10228 )
...
automerge
2020-05-25 01:32:54 -07:00
8a8384e674
Bump sha2 from 0.8.1 to 0.8.2 ( #10205 )
...
* Bump sha2 from 0.8.1 to 0.8.2
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.8.1...sha2-v0.8.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2020-05-24 19:44:04 -07:00
2928c5d103
Add SingleGossip commitment level to use for subscriptions ( #10147 )
...
automerge
2020-05-22 12:55:17 -07:00
2324eb9ff9
Make slot history a billion times faster ( #10175 )
2020-05-22 11:15:16 -07:00
ce17de7d25
Add option to wait for a specific epoch length to bench-tps ( #10083 )
2020-05-20 16:42:46 -07:00
d9919b99d2
Remove folds ( #10128 )
...
automerge
2020-05-19 18:13:41 -07:00
300b33a20e
Add unique_signers() to SDK ( #10105 )
...
automerge
2020-05-18 18:31:45 -07:00
bbc549f592
Rename program_id to owner in system instructions ( #10069 )
2020-05-18 12:55:41 -07:00
bac4aec16f
Trigger RPC notifications after block commitment cache update ( #10077 )
...
* Fixup commitment-aggregation metric
* Trigger notifications after commitment-cache update
* Fixup fn name
* Add single-confirmation commitment level
* Rename to highest_confirmed_slot
* Pass commitment-cache info directly to notifications
* Use match
* Update commitment docs
* Update out of date pubsub docs
2020-05-18 12:49:01 -06:00
5e89bd8868
Panic if no fee-payer found via Message::new() ( #10050 )
...
automerge
2020-05-15 12:23:09 -07:00
58ef02f02b
9951 clippy errors in the test suite ( #10030 )
...
automerge
2020-05-15 09:35:43 -07:00
63813fe69f
Add Ledger error codes ( #10056 )
...
automerge
2020-05-14 21:52:11 -07:00
eb1acaf927
Remove archiver and storage program ( #9992 )
...
automerge
2020-05-14 18:22:47 -07:00
ed53a70b5c
Cli: transfer ALL; check spend+fee in client ( #10012 )
...
* lamports->SOL in user-facing error msg
* Check for sufficient balance for spend and fee
* Add ALL option to solana transfer
* Rework TransferAmount to check for sign_only in parse
* Refactor TransferAmount & fee-check handling to be more general
* Add addl checks mechanism
* Move checks out of cli.rs
* Rename to SpendAmount to be more general & move
* Impl ALL/spend helpers for create-nonce-account
* Impl spend helpers for create-vote-account
* Impl ALL/spend helpers for create-stake-account
* Impl spend helpers for ping
* Impl ALL/spend helpers for pay
* Impl spend helpers for validator-info
* Remove unused fns
* Remove retry_get_balance
* Add a couple unit tests
* Rework send_util fn signatures
2020-05-14 12:24:14 -06:00
c5460e7fee
Remove inline from all BPF C functions ( #10038 )
2020-05-13 17:23:39 -07:00
1eb40c3fe0
Introduce eager rent collection ( #9527 )
...
* Switch AccountsIndex.account_maps from HashMap to BTreeMap
* Introduce eager rent collection
* Start to add tests
* Avoid too short eager rent collection cycles
* Add more tests
* Add more tests...
* Refacotr!!!!!!
* Refactoring follow up
* More tiny cleanups
* Don't rewrite 0-lamport accounts to be deterministic
* Refactor a bit
* Do hard fork, restore tests, and perf. mitigation
* Fix build...
* Refactor and add switch over for testnet (TdS)
* Use to_be_bytes
* cleanup
* More tiny cleanup
* Rebase cleanup
* Set Bank::genesis_hash when resuming from snapshot
* Reorder fns and clean ups
* Better naming and commenting
* Yet more naming clarifications
* Make prefix width strictly uniform for 2-base partition_count
* Fix typo...
* Revert cluster-dependent gate
* kick ci?
* kick ci?
* kick ci?
2020-05-13 16:22:14 +09:00
5cc252d471
Remove hash field from account ( #9915 )
2020-05-12 23:39:46 +08:00
97e17f9b32
Programs can only sign their accounts
2020-05-11 09:06:05 -07:00
288c9751c1
Bump serde from 1.0.106 to 1.0.110 ( #9964 )
...
* Bump serde from 1.0.106 to 1.0.110
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.106 to 1.0.110.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.110 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2020-05-10 16:24:25 -07:00
0541431ea8
Bump serde_json from 1.0.52 to 1.0.53 ( #9957 )
...
* Bump serde_json from 1.0.52 to 1.0.53
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.52 to 1.0.53.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.52...v1.0.53 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2020-05-10 11:46:29 -07:00
3ee702a922
Rpc: Add getCirculatingSupply endpoint, redux ( #9953 )
...
* Add Bank.clock() helper
* Add non-circulating calculations
* Plumb getSupply rpc endpoint
* Add docs for getSupply, and remove getTotalSupply from docs
* Add pubkeys! procedural macro
* Use procedural macro in non_circulating_supply
2020-05-09 12:05:29 -06:00
f37f83fd12
Fuzzer test and fixes ( #9853 )
2020-05-02 08:07:52 -07:00
894549f002
Put empty accounts in the accounts list on load ( #9840 )
...
Indexing into accounts array does not match account_keys otherwise.
Also enforce program accounts not at index 0
Enforce at least 1 Read-write signing fee-payer account.
2020-05-01 17:23:33 -07:00
8dfe0affd4
Add incinerator sysvar ( #9815 )
2020-04-30 22:04:08 -07:00
7678af6300
Cleanup BPF helper symbols ( #9804 )
2020-04-30 11:29:11 -07:00
de9d8cd849
Rename BPF helper to syscall ( #9819 )
...
automerge
2020-04-30 01:43:11 -07:00
6deaf649ef
Add commitment Root variant, and add fleshed out --commitment arg to Cli ( #9806 )
...
automerge
2020-04-29 21:55:33 -07:00
a0514eb2ae
thiserror, docs, remove general Failure case ( #9741 )
...
automerge
2020-04-29 18:12:51 -07:00
1018807db9
Bump Rust-BPF version to be interoperable with latest Rust ( #9783 )
...
automerge
2020-04-28 23:47:59 -07:00