Brennan Watt
9a6ab5e7fe
Distinguish turbine vs repair insertion metrics ( #28980 )
2022-11-30 09:03:53 -08:00
Jeff Washington (jwash)
2427004dba
add 'bytes' to aligned/alive_total for clarity ( #28982 )
2022-11-30 07:38:57 -08:00
Haoran Yi
597828630b
fix account-cluster-bench logging
2022-11-30 09:00:14 -06:00
Haoran Yi
ed1d0788ed
fix typo
2022-11-30 09:00:14 -06:00
samkim-crypto
11efaf75a4
[zk-token-sdk] divide fee encryption into two ciphertexts ( #28472 )
...
* divide fee encryption into two ciphertexts
* clippy
* update range proof
* add fee ciphertext decryption
* clean up split_u64 function
* remove unnecessary casting
2022-11-30 15:11:38 +09:00
Tyera
3d6eb16753
Bump spl-ata to v1.1.2 ( #28979 )
2022-11-30 03:46:42 +00:00
Steven Luscher
8c6ad8c001
A GitHub workflow to automagically label PRs with Explorer or web3.js changes ( #28986 )
2022-11-29 18:14:53 -08:00
Jeff Washington (jwash)
c8cc1270f1
log # append vecs open ( #28958 )
2022-11-29 16:48:02 -08:00
Jeff Washington (jwash)
e42649a8ba
remove cli arg to specify # accounts hash scan passes ( #28976 )
2022-11-29 16:47:51 -08:00
apfitzge
4d338ed882
Bugfix/mi_remove_never_entries ( #28978 )
2022-11-29 16:00:21 -06:00
Jeff Washington (jwash)
19d86bd2b1
add balance to cap overflow message ( #28975 )
2022-11-29 13:55:07 -08:00
Jon Cinque
99d8929ab4
program-test: Add `ProgramTestContext::get_new_latest_blockhash` ( #28977 )
2022-11-29 22:38:01 +01:00
Tyera
fd13323f4b
Split rpc_accounts api to identify calls that scan accountsDB ( #28968 )
...
* Update stale comment
* Collect RPC endpoints that perform accounts scans
2022-11-29 10:08:19 -07:00
Yihau Chen
a665d679cc
Merge pull request from GHSA-cq9g-c286-6ch7
...
* create a reusable workflow for current error reporting logic
* make github.event.head_commit.message as a env, COMMIT_MESSAGE
* make github.event.head_commit.author.name as a env, COMMIT_AUTHOR_NAME
* remove redundant name
* replace error reporting step with the reusalble workflow
2022-11-30 00:58:42 +08:00
steveluscher
45291a5001
chore: remove @babel/register dependency from web3.js
2022-11-29 08:04:19 +00:00
steveluscher
85e6b80347
chore: remove unused http-server dependency from web3.js
2022-11-29 08:00:06 +00:00
dependabot[bot]
cc296839da
chore: bump http-server from 14.1.0 to 14.1.1 in /web3.js ( #27333 )
...
Bumps [http-server](https://github.com/http-party/http-server ) from 14.1.0 to 14.1.1.
- [Release notes](https://github.com/http-party/http-server/releases )
- [Commits](https://github.com/http-party/http-server/compare/v14.1.0...v14.1.1 )
---
updated-dependencies:
- dependency-name: http-server
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 23:48:26 -08:00
Ian Macalinao
f53aa5f12b
chore: remove redundant 'Buffer' from 'Account' class ( #27865 )
2022-11-28 23:42:58 -08:00
Ian Macalinao
0e70275b07
chore: use constant for PUBLIC_KEY_LENGTH for checking length of input ( #27876 )
2022-11-28 23:29:40 -08:00
Ian Macalinao
61803b914f
chore: add deprecation notice for createProgramAddress ( #27879 )
2022-11-28 23:29:06 -08:00
Ian Macalinao
ac8ddc841c
chore: deprecate PublicKey.findProgramAddress ( #27882 )
2022-11-28 23:28:35 -08:00
Ian Macalinao
19ec2dc0b1
chore: replace casts with not-null assertions ( #27883 )
2022-11-28 23:26:08 -08:00
Ian Macalinao
8c8e113879
chore: fix typo in PublicKey.unique ( #27884 )
2022-11-28 23:15:58 -08:00
Steven Luscher
7646521a6e
feat: a nonce-based transaction confirmation strategy for web3.js ( #25839 )
...
* feat: you can now construct a `Transaction` with durable nonce information
* chore: refactor confirmation logic so that each strategy gets its own method
* feat: `geNonce` now accepts a `minContextSlot` param
* feat: a nonce-based transaction confirmation strategy
* feat: add nonce confirmation strategy to send-and-confirm helpers
* fix: nits from July 8 review
* Use Typescript narrowing to determine which strategy to use
* Double check the signature confirmation against the slot in which the nonce was discovered to have advanced
2022-11-28 22:46:27 -08:00
Ashwin Sekar
0d0a491f27
More documentation + small refactor for RepairService ( #28933 )
2022-11-28 19:46:06 -08:00
Steven Luscher
04789cab81
fix: verify commitment level when confirming transactions with one-shot fetch ( #28969 )
...
* Rename `subscriptionCommitment` to `confirmationCommitment`
* Reorganize status checking code to return early if `value` is `null`
* Bail if the one-shot signature result does not meet the target commitment
2022-11-28 18:50:16 -08:00
Ian Macalinao
3b2014ddc1
fix: remove Buffer from transaction signature verification ( #27868 )
2022-11-28 16:32:16 -08:00
Jeff Washington (jwash)
7999f4278e
add feature #28934 (no-op in master) ( #28936 )
2022-11-28 14:58:59 -08:00
Pankaj Garg
a369b4a070
TPU client fix for leader schedule cache lookup ( #28954 )
...
TPU client fix for leader schedule cache
2022-11-28 13:44:08 -08:00
amilz
3922f3d685
fix: add confirmation status to ConfirmedSignatureInfo web3.js response ( #28555 )
...
* Add confirmation status to ConfirmedSignatureInfo web3 response
* Update web3.js/src/connection.ts
Co-authored-by: Austin Milt <austin.w.milt@gmail.com>
Co-authored-by: Austin Milt <austin.w.milt@gmail.com>
2022-11-28 12:00:40 -08:00
Pierre
ea5bbc8ce0
explorer: fix blockhash into hash for Slot Hashes ( #28952 )
2022-11-28 11:56:50 -08:00
Adrian Brzeziński
d16810ec84
fix: web3.js transaction confirmation now double-checks for already-confirmed txs ( #28290 )
...
* chore: create internal method for subscribing to subscription state changes
* add status pool
* fix tests
* more tests
* syntax fix
* variable rename
* fix test
* comment fix
* remove getSignatureStatuses pooling
* rename variable
* IIFE
* wait for subscription
* fix interval clear
* test: you can now pause the establishment of subscriptions in tests
* feat: implementation of signature status check after setting up signature subscription
Co-authored-by: steveluscher <me+github@steveluscher.com>
2022-11-28 11:55:56 -08:00
Tao Zhu
9f370475d4
remove obsoleted comment ( #28960 )
2022-11-28 13:39:40 -06:00
hanako mumei
015784ad07
update to spl-token-2022 0.5.0
...
* support CpiGuard and PermanentDelegate extensions in transaction-status and account-decoder
* update transaction-status and account-decoder to new ConfidentialTransfer interfaces
2022-11-28 11:30:41 -08:00
behzad nouri
7d99cddb9f
dedups turbine retransmit peers by tvu socket addresses ( #28944 )
...
No need to send duplicate shreds if several nodes have the same tvu
socket address because they are behind a relayer or whatever.
2022-11-28 19:23:02 +00:00
HaoranYi
7e87998091
reduce memory usage report freq to 1 per 5s ( #28327 )
2022-11-28 19:08:06 +00:00
apfitzge
bdd162492c
Feature/multi-iterator-scanner-read-locks ( #28862 )
2022-11-28 11:23:04 -06:00
Brooks Prumo
9327658007
Promotes accounts hash to a strong type ( #28930 )
2022-11-28 10:09:47 -05:00
Steven Luscher
656b150e57
[web3.js][experimental] Set up test/dev infra ( #28950 )
...
* Update `@solana/eslint-config-solana`
* [web3.js][experimental] Add Watchman config to ignore `dist` and `node_modules` folders
* [web3.js][experimental] Install Jest
* [web3.js][experimental] Configure Jest to lint, format, and test code
* [web3.js][experimental] Add a typecheck step
* [web3.js][experimental] Add fake tests and fake implementation to exercise the build infra
2022-11-23 18:25:02 -08:00
Steven Luscher
2e99668111
[web3.js][experimental] Remove bundlewatch dependency ( #28949 )
2022-11-23 17:54:45 -08:00
Steven Luscher
e8da995e14
[web3.js][experimental] Improve package exports ( #28948 )
...
* [web3.js][experimental] Repair build paths and add package.json `exports` field for CommonJS/ESM compatibility
* [web3.js][experimental] Add package.json entries for common JavaScript CDNs
* [web3.js][experimental] Exclude source files from npm bundle
2022-11-23 16:47:56 -08:00
Brooks Prumo
267bbcadcf
Cleans up accounts hash testing in ABS ( #28931 )
2022-11-23 10:07:22 -05:00
Haoran Yi
f051f3c72f
move comments
2022-11-23 08:50:03 -06:00
Jeff Washington (jwash)
9a24743d2a
expect only 1 store per slot ( #28844 )
...
expect only 1 store per slot in shrink
2022-11-23 06:20:36 -08:00
Brooks Prumo
04016e3bcf
Don't wait for EAH unless feature is enabled ( #28938 )
2022-11-23 09:11:28 -05:00
Alessandro Decina
bee24a81b8
Refactor CPI, add tests and sprinkle some comments ( #28544 )
...
* bpf_loader: cpi: split account update code to update_caller_account and add tests
* bpf_loader: cpi: set CallerAccount::original_data_len earlier
* cpi: add CallerAccount::from_account_info and CallerAccount::from_sol_account_info
* cpi: refactor common account info translation code in translate_account_infos
* update_caller docs
* cpi: rename translate_accounts to translate_and_update_accounts
* cpi: refactor pre-cpi account update code into update_callee_account
* cpi: add tests for CallerAccount::from_account_info
* cpi: add test for SyscallInvokeSignedRust::translate_accounts
* cpi: fix lints
* cpi: add test for translate_instruction()
* cpi: add test for translate_signers
* cpi: fix lint
* cpi: review fixups round 1
* cpi: more review fixups
Replace ugly MockInvokeContext with a macro
* cpi: more review fixes
replace get_callee with macro
* cpi: more review fixes
Add MockAccountInfo::new
* Fix rebase mistake
2022-11-23 23:22:50 +11:00
Alessandro Decina
1f40cb3d37
The syscall_saturated_math feature was activated, remove checks ( #28605 )
2022-11-23 20:42:59 +11:00
Brooks Prumo
638b26ea65
Renames EAH test fn ( #28939 )
2022-11-23 05:18:50 +00:00
apfitzge
38f7122605
separate make_decision in BankingStage ( #28884 )
2022-11-22 19:01:09 -06:00
Brooks Prumo
40a7c6d46a
Renames fn to insert_default_bank_hash() ( #28929 )
2022-11-22 19:31:59 -05:00