Alexander Meißner
83ef3fc53e
Refactor: Remove `KeyedAccount` in bpf_loader helper functions ( #23986 )
...
* Replaces KeyedAccount in create_executor().
* Refactors len to write_offset in write_program_data().
* Replaces KeyedAccount in write_program_data().
* Use transaction_context.get_key_of_account_at_index() in process_instruction_common().
* Renames next_first_instruction_account to program_account_index.
* Replaces program KeyedAccount by BorrowedAccount in process_instruction_common().
* Removes _program in process_instruction_common().
* Replaces first_account KeyedAccount by BorrowedAccount in process_instruction_common().
* Moves KeyedAccount lookup inside common_close_account().
* Replaces close_account, recipient_account and authority_account KeyedAccount by BorrowedAccount in common_close_account().
2022-03-30 09:17:55 +02:00
Jeff Washington (jwash)
da844d7be5
refactoring of SortedStorages tests to make other changes easier ( #23990 )
2022-03-29 22:06:48 -05:00
Jeff Washington (jwash)
5a613e9b6e
use CalcAccountsHashConfig in calculate_accounts_hash ( #23987 )
2022-03-29 22:05:47 -05:00
Alexander Meißner
794645d092
Adds check_number_of_instruction_accounts() to all builtin programs except for the address-lookup-table. ( #23984 )
2022-03-29 19:06:50 +02:00
HaoranYi
ac8b662413
reduce metric write log level ( #23966 )
2022-03-29 12:00:42 -05:00
Michael Vines
7ef18f220a
Update Version CrdsData on node identity changes
2022-03-28 15:57:16 -07:00
dependabot[bot]
2a5764ef79
chore: bump @rollup/plugin-commonjs from 21.0.2 to 21.0.3 in /web3.js ( #23962 )
...
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs ) from 21.0.2 to 21.0.3.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v21.0.3/packages/commonjs )
---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 08:16:45 +00:00
stellaw1
c08cfafd6c
feat: adds getBlockProduction RPC call
2022-03-26 18:31:40 -07:00
Brooks Prumo
31b707b625
Specify if archive size datapoint is for full or incremental snapshots ( #23941 )
2022-03-26 12:29:13 -05:00
steveluscher
5e08701189
feat: the search bar now auto-focuses when you first visit the site
2022-03-26 00:05:15 -07:00
Michael Vines
87e0aa1b74
improve arg documentation
2022-03-25 21:37:10 -07:00
Trent Nelson
bd27eedd15
cli: allow skipping fee-checks when writing program buffers (hidden)
2022-03-25 18:19:03 -06:00
Jeff Washington (jwash)
c24de17278
remove index hash calculation as an option ( #23928 )
2022-03-25 15:32:53 -05:00
Jeff Washington (jwash)
ec78702bc8
RollingBitField::get_all_less_than ( #23919 )
2022-03-25 15:20:22 -05:00
HaoranYi
01af40d6b6
Fix intermittent validator_exit test failure ( #23594 )
...
* run validator_exit_test sequentially
* limit validator exit run to its own serial run subset
add 10ms delay in the validator exit tests
* fix intermittent validator exit failure
* no sleep
* undo the code move
2022-03-25 14:38:19 -05:00
behzad nouri
1f9c89c1e8
expands lifetime of SlotStats ( #23872 )
...
Current slot stats are removed when the slot is full or every 30 seconds
if the slot is before root:
https://github.com/solana-labs/solana/blob/493a8e234/ledger/src/blockstore.rs#L2017-L2027
In order to track if the slot is ultimately marked as dead or rooted and
emit more metrics, this commit expands lifetime of SlotStats while
bounding total size of cache using an LRU eviction policy.
2022-03-25 19:32:22 +00:00
Will Hickey
c6dda3b324
Add solana-faucet to the list of dependencies referenced by downstream projects ( #23935 )
2022-03-25 13:27:31 -05:00
Trent Nelson
e34c52934c
ci: don't allow mergify to add automerge label to merged PRs
2022-03-25 16:19:11 +00:00
Jeff Washington (jwash)
acfd22712b
RollingBitFIeld to its own file ( #23917 )
2022-03-25 10:37:00 -05:00
ryleung-solana
6b85c2104c
Implement forwarding via TpuConnection ( #23817 )
2022-03-25 11:31:40 -04:00
Steven Luscher
f44c8f296f
fix: thread `enforce_ulimit_nofile` config down when opening blockstore ( #23925 )
2022-03-25 03:13:33 -05:00
steveluscher
9cf7720922
fix: when there is no instruction index, default to the current instruction by supplying u16:MAX
2022-03-24 22:55:52 -07:00
steveluscher
c73cdfd6ce
fix: add TypeScript buffer type to nonce-account.ts
2022-03-24 22:55:52 -07:00
steveluscher
477355df3b
fix: add TypeScript buffer type to stake-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
6686b7c534
fix: add TypeScript buffer type to message.ts
2022-03-24 22:55:52 -07:00
steveluscher
741c85ca7c
fix: add TypeScript buffer type to loader.ts
2022-03-24 22:55:52 -07:00
steveluscher
6bb02cdcc1
fix: add TypeScript buffer type to secp256k1-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
96361295aa
fix: add TypeScript buffer type to ed25519-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
3333f37e88
fix: add TypeScript buffer type to vote-account.ts
2022-03-24 22:55:52 -07:00
steveluscher
b2f2a68b86
fix: fix spelling of timestamp in BlockTimestamp type
2022-03-24 22:55:52 -07:00
steveluscher
c227b8ca4d
fix: add TypeScript buffer type to vote-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
607a5c05de
fix: add TypeScript buffer type to system-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
807f88e547
fix: add TypeScript types to the rustString buffer layout helper
2022-03-24 22:55:52 -07:00
steveluscher
d34fe3dba3
fix: add TypeScript buffer type to layout.ts
2022-03-24 22:55:52 -07:00
steveluscher
b516a25132
fix: add TypeScript buffer type to instruction.ts
2022-03-24 22:55:52 -07:00
steveluscher
023fc028bc
chore: Upgrade buffer-layout to v4.0.0
2022-03-24 22:55:52 -07:00
Steven Luscher
412d9be445
fix: repair web3 connection tests by making fewer assumptions about the existence of particular blocks ( #23921 )
...
* fix: repair 'get confirmed signatures for address' test in web3.js
* fix: repair 'get signatures for address' test in web3.js
* fix: repair 'get parsed confirmed transactions' test in web3.js
* fix: repair 'get transaction' test in web3.js
* fix: repair 'get confirmed transaction' test in web3.js
* fix: repair 'get block' test in web3.js
* fix: repair 'get confirmed block' test in web3.js
* fix: repair 'get block signatures' test in web3.js
* fix: repair 'get block time' test in web3.js
Co-authored-by: steveluscher <github@steveluscher.com>
2022-03-24 22:21:14 -07:00
Michael Vines
c8c3c4359f
`vote-authorize-voter` now accepts either the vote or withdraw authority
2022-03-24 16:46:41 -07:00
Jeff Washington (jwash)
51f5524e2f
make verify_accounts_package_hash like other hash calc ( #23906 )
2022-03-24 17:49:48 -05:00
Brian Anderson
492c54a28f
Fix example mock Signer API in solana-program ( #23911 )
2022-03-24 17:58:51 -04:00
Jeff Washington (jwash)
55d61023f7
document 'accounts' hash ( #23907 )
2022-03-24 15:58:52 -05:00
HaoranYi
fedf4e984f
typo ( #23910 )
2022-03-24 15:21:59 -05:00
Josh
9dbb950a25
feat(explorer): show ping server metrics unavailable ( #23914 )
...
* feat: show ping server metrics unavailable
* fix: formatting
2022-03-24 13:54:51 -06:00
steviez
b61c0a4a21
Add accounts arg to genesis command to dump genesis account info ( #23879 )
2022-03-24 14:26:08 -05:00
Alexander Meißner
140c8dd01f
Refactor: Replaces KeyedAccount in_get_sysvar_with_account_check ( #23905 )
...
* Replaces all use sites of get_sysvar_with_account_check by get_sysvar_with_account_check2.
* Removes get_sysvar_with_account_check.
* Renames get_sysvar_with_account_check2 to get_sysvar_with_account_check.
2022-03-24 19:30:42 +01:00
Jeff Washington (jwash)
37c36ce3fa
pass stats separately from CalcAccountsHashConfig ( #23892 )
2022-03-24 12:48:47 -05:00
Jeff Washington (jwash)
82328fd9d8
move max_clean_root deeper in flush cache ( #23869 )
2022-03-24 12:45:49 -05:00
steviez
c31db81ac4
Use VoteAccountsHashMap type alias in all applicable spots ( #23904 )
2022-03-24 12:09:48 -05:00
Jeff Washington (jwash)
a22a2384bf
fix ci test error ( #23908 )
2022-03-24 11:30:20 -05:00
ryleung-solana
82945ba973
Optimize TpuConnection and its implementations and refactor connection-cache to not use dyn in order to enable those changes ( #23877 )
2022-03-24 11:40:26 -04:00