klykov
f5339882cb
refactor cmdline interface
2022-03-18 14:55:33 +01:00
klykov
a63dee87ec
add transaction parameters dump
2022-03-18 14:55:33 +01:00
klykov
1b0c9ad4c0
add option payer to dos tool
2022-03-18 14:55:33 +01:00
klykov
cf73f6dc74
fix typo in dos
2022-03-18 14:55:33 +01:00
klykov
dce5d1c1fa
avoid signatures if unnecessary in dos
2022-03-18 14:55:33 +01:00
klykov
1641d1d329
fix: cache blockhash in dos tool
2022-03-18 14:55:33 +01:00
klykov
cb537e80d7
add transaction options to dos
2022-03-18 14:55:33 +01:00
klykov
d4d95f1811
add valid blockhash option to dos
2022-03-18 14:55:33 +01:00
klykov
797c3324f0
add number of signatures to dos
2022-03-18 14:55:33 +01:00
Tao Zhu
0ed23899e7
directly use compute_budget MAX_UNITS and DEFAULT_UNITS
2022-03-18 08:53:11 -05:00
Tao Zhu
a4cacf3389
add deterministic default cost
2022-03-18 08:53:11 -05:00
Trent Nelson
ce2e82cfb6
validator: `--only-known-rpc` requires a `--known-validator ...`
2022-03-18 07:02:16 +00:00
Jeff Washington (jwash)
857576d76f
AcctIdx: move write to disk outside in mem write lock ( #23731 )
2022-03-17 23:09:41 -05:00
Brooks Prumo
7ff8c80e25
Add accounts_data_len to bank snapshot ( #23714 )
2022-03-17 20:14:54 -05:00
Tao Zhu
c478fe2047
add timing metrics, some renaming
2022-03-17 19:31:28 -05:00
Tao Zhu
fd515097d8
leader qos part 2: add stage to find sender stake, set to packet meta
2022-03-17 19:31:28 -05:00
Stephen Akridge
976b138e76
Add tx weighting stage
2022-03-17 19:31:28 -05:00
Jeff Washington (jwash)
664deb2157
AcctIdx: get rid of unused is_dirty ( #23733 )
2022-03-17 16:29:36 -05:00
Lijun Wang
8b230b86cc
Use borrow instead of move in interfaces defined by TpuConnection ( #23734 )
...
* Use borrow instead of move in interfaces defined by TpuConnection to avoid data copy
* Removed a few more unnecessary whole array slicing.
2022-03-17 13:31:11 -07:00
behzad nouri
6b0d34d70d
removes redundant Arcs from Blockstore ( #23735 )
2022-03-17 19:43:57 +00:00
Jeff Washington (jwash)
342f1ab1cb
clean up/add comments ( #23727 )
2022-03-17 14:23:08 -05:00
Will Hickey
2f58c9e501
Bump version to 1.10.4 ( #23743 )
2022-03-17 14:02:13 -05:00
Jeff Washington (jwash)
bb9f9c8dd5
AccountSharedData::serialize ( #23685 )
2022-03-17 09:29:49 -05:00
Jeff Washington (jwash)
66b1f55351
AcctIdx: cheaper check for should evict while flushing ( #23705 )
2022-03-17 08:46:32 -05:00
Jeff Washington (jwash)
3a46f45650
AcctIdx: add stats for flushing and estimated memory ( #23709 )
2022-03-17 08:46:00 -05:00
Justin Starry
9ed056424c
Remove unused `InstructionRecorder` and some `SanitizedMessage` methods ( #23723 )
2022-03-17 20:25:12 +08:00
Justin Starry
0eccacbd5b
Add CLI support for versioned transactions ( #23606 )
2022-03-17 11:43:04 +08:00
Tyera Eulberg
330d6db19a
Pin version for publish cargo-check ( #23716 )
2022-03-16 18:46:41 -06:00
Justin Starry
b4350a2522
Make solana-address-lookup-table-program crate bpf compatible ( #23700 )
2022-03-17 08:21:07 +08:00
Alexander Meißner
dda3a463a2
Fix duplicate account translation in CPI ( #23701 )
...
* Use visit_each_account_once() in CPI syscall to prevent duplicate accounts from being translated twice.
* remove unwrap() from runtime
Co-authored-by: Jack May <jack@solana.com>
2022-03-16 22:45:01 +00:00
Jeff Washington (jwash)
be0aeea01a
AcctIdx: check for range holds outside lock ( #23706 )
2022-03-16 17:44:59 -05:00
Jeff Washington (jwash)
caddb851be
acct idx flush keeps slot_list read lock open ( #23704 )
2022-03-16 17:29:04 -05:00
Brooks Prumo
18bddbc730
Stake tests respect MINIMUM_STAKE_DELEGATION ( #23426 )
2022-03-16 16:36:23 -05:00
Yueh-Hsuan Chiang
86c695268e
(LedgerStore) Improve the function API of new_cf_descriptor ( #23696 )
...
As we start adding more options into BlockstoreOptions, it's better to allow
new_cf_descriptor to take the reference to BlockstoreOptions so that
we can avoid future function API changes on new_cf_descriptor.
2022-03-16 11:47:49 -07:00
dependabot[bot]
45337885c1
chore: bump gethostname from 0.2.1 to 0.2.3 ( #23697 )
...
* chore: bump gethostname from 0.2.1 to 0.2.3
Bumps gethostname from 0.2.1 to 0.2.3.
---
updated-dependencies:
- dependency-name: gethostname
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-03-16 12:35:39 -06:00
Tyera Eulberg
072a8c99ea
Bump openssl-src ( #23708 )
2022-03-16 12:34:47 -06:00
Brooks Prumo
74bb527203
Refactor and use MINIMUM_STAKE_DELEGATION constant ( #22663 )
2022-03-16 10:56:48 -05:00
Jeff Washington (jwash)
fa7926580a
minor VoteAccount refactoring ( #23686 )
2022-03-16 09:50:12 -05:00
Justin Starry
cffc32af3e
Make payer and system program optional when extending lookup tables ( #23678 )
2022-03-16 21:40:16 +08:00
behzad nouri
3252dc7203
uses structural sharing for stake-delegations hash-map ( #23585 )
...
StakeDelegations is using Arc to implement copy-on-write semantics:
https://github.com/solana-labs/solana/blob/58c0db970/runtime/src/stake_delegations.rs#L14-L16
However a single delegation change will still clone the entire hash-map,
resulting in excessive memory use as observed in:
https://github.com/solana-labs/solana/issues/23061#issuecomment-1063444072
This commit instead uses immutable hash-map implementing structural
sharing:
> which means that if two data structures are mostly copies of each
> other, most of the memory they take up will be shared between them.
https://docs.rs/im/latest/im/
2022-03-16 12:58:05 +00:00
Alexander Meißner
584ac80b1e
Revert: `KeyedAccount` refactoings in builtin programs ( #23649 )
...
* Revert "Replaces KeyedAccount by BorrowedAccount in the BPF loader. (#23056 )"
6c56eb9663
* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in `system_instruction_processor`. (#23217 )"
ee7e411d68
* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in `nonce_keyed_account`. (#23214 )"
1a68f81f89
* Revert "Replaces KeyedAccount by BorrowedAccount in the config processor. (#23302 )"
a14c7c37ee
* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in vote processor (#23348 )"
e2fa6a0f7a
* Revert "Refactor: Prepare stake_instruction.rs to remove `KeyedAccount`s (#23375 )"
ee3fc39f1c
2022-03-16 11:30:01 +01:00
dependabot[bot]
44ab660172
chore: bump libc from 0.2.119 to 0.2.120 ( #23694 )
...
* chore: bump libc from 0.2.119 to 0.2.120
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.119 to 0.2.120.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.119...0.2.120 )
---
updated-dependencies:
- dependency-name: libc
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-03-16 00:34:40 -06:00
Michael Vines
3773b753d1
Configure shrink paths during blockstore load
2022-03-15 23:08:07 -07:00
Michael Vines
ab373bb1a9
Refactor new_banks_from_ledger() into load and process steps
2022-03-15 23:08:07 -07:00
Michael Vines
390c5667f7
Setup bank hard_forks in load_bank_forks()
2022-03-15 23:08:07 -07:00
dependabot[bot]
455313584f
chore: bump sha3 from 0.10.0 to 0.10.1 ( #23480 )
...
* chore: bump sha3 from 0.10.0 to 0.10.1
Bumps [sha3](https://github.com/RustCrypto/hashes ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha3-v0.10.0...sha3-v0.10.1 )
---
updated-dependencies:
- dependency-name: sha3
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
* Revert bump in zk-token-sdk
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 <tyera@solana.com>
2022-03-16 06:01:01 +00:00
dependabot[bot]
e4590c5be6
chore: bump rpassword from 6.0.0 to 6.0.1 ( #23683 )
...
* chore: bump rpassword from 6.0.0 to 6.0.1
Bumps [rpassword](https://github.com/conradkleinespel/rpassword ) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/conradkleinespel/rpassword/releases )
- [Commits](https://github.com/conradkleinespel/rpassword/compare/v6.0.0...v6.0.1 )
---
updated-dependencies:
- dependency-name: rpassword
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-03-15 21:41:27 -06:00
Tyera Eulberg
410463fb72
Update InvalidRentPayingAccount error ( #23680 )
2022-03-15 21:41:16 -06:00
Michael Vines
2da4e3eb6c
Add --no-os-memory-stats-reporting
2022-03-15 17:07:40 -07:00
Michael Vines
dbc62f2e28
Use consistent variable naming for DropBankService
2022-03-15 17:07:13 -07:00