Commit Graph

18637 Commits

Author SHA1 Message Date
steveluscher 7b5aee7576 chore: update web3.js lockfiles 2022-04-27 11:43:57 -07:00
Steven Luscher 442e6c325f
fix: eliminate circular dependencies in web3.js (#24729)
* chore: enable circular dependency warnings on build
* fix: eliminate circular dependencies in web3.js
2022-04-27 11:41:14 -07:00
Steven Luscher 69725df6b0
chore: delete unused Rollup config in web3.js test dir (#24733) 2022-04-27 11:36:04 -07:00
behzad nouri 0f60665100
replaces Shred::new_empty_coding with Shred::new_from_parity_shard (#24749)
Removing implementation details of shreds and payload offsets from
shredder, so that shredder does not need to mutate payload:
https://github.com/solana-labs/solana/blob/71ad12128/ledger/src/shred.rs#L968-L977

Also, Shred::new_from_data can simply obtain a slice as opposed to
Option<&[u8]>:
https://github.com/solana-labs/solana/blob/71ad12128/ledger/src/shred.rs#L268-L278
2022-04-27 18:04:10 +00:00
sakridge cdce19be29
Use batch send instead of individual send (#24628) 2022-04-27 19:28:16 +02:00
Steven Luscher 27a1757612
chore: compile tests with the same compiler as the build itself (#24728) 2022-04-27 09:53:24 -07:00
Justin Starry 2f62fb2031 Revert "Increase worker thread limits in quic streamer runtime (#24535)"
This reverts commit f244a2e141.
2022-04-28 00:46:42 +08:00
Jacob Creech b080352436
fix: Update custom metadata token disclaimer (#24750)
* fix: Update custom metadata token disclaimer

There have been quite a few reports of people creating tokens and then being confused by the disclaimer on their own token. Added some additional information + a CTA to verify based on feedback

* fix: update token metadata disclaimer to warning
2022-04-28 00:37:38 +08:00
Steven Luscher 0e3056f265
chore: leave no-undef checking up to TypeScript (#24726) 2022-04-27 09:31:57 -07:00
HaoranYi 71ad121282
metric optimization: simply data structure used for metric datapoints and counter storage (#24447)
* remove redudant if

* check loglevel enable before submit metrics

* optimize metric data structure

* add metrics benches

* clippy: add default impl

* remove clone

* add random benches

* use mem::swap to exchange points vec
2022-04-27 09:11:29 -05:00
Tyera Eulberg db32549c00
Convert tuples to structs in Stake rewards-calculation functions (#24681)
* Replace opaque tuples with structs in Stake rewards calculation

* Fixup struct and field names, and remove one cumbersome destructuring
2022-04-27 07:44:10 +00:00
Steven Luscher 2be4ee3619
test: increase timeout for getEstimatedFee test (#24732) 2022-04-26 23:54:56 -07:00
Justin Starry 4e2d96fe88
explorer: display slot leaders on block details page (#24727) 2022-04-27 04:57:18 +00:00
Jeff Washington (jwash) f22738fd7b
fix test_rent_eager_collect_rent_in_partition (#24722) 2022-04-26 23:06:57 -05:00
Yihau Chen 9f34968a7f
explorer: replace Block with Slot (#24725) 2022-04-27 11:47:37 +08:00
steviez b48fd4eec2
Construct PacketBatches from PongMessages directly (#24708)
Serialize pongs directly into PacketBatch to save copying the data from
intermediate packets into PacketBatch.
2022-04-26 21:30:00 -05:00
behzad nouri 081c844d6e
removes Shred::new_empty_data_shred (#24714)
Shred::new_empty_data_shred returns an invalid shred (i.e.
shred.sanitize() returns error). The method is only used in tests and
can be easily replaced with Shred::new_from_data. To keep the shred api
surface small, this commit removes this method.
2022-04-26 23:13:12 +00:00
Ryo Onodera 412a5a0d33
Credits auto rewind on vote recreation (#22546)
* Credits auto rewind on vote recreation

* Update comment

* Improve comments and tests

* Recommended fn rename

* Restore old feature, and replace new feature key

Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-04-26 15:49:35 -06:00
Pankaj Garg f244a2e141
Increase worker thread limits in quic streamer runtime (#24535)
* Increase worker thread limits in quic streamer runtime

* fix Cargo.lock

* fix test, and use a constant for controlling thread count
2022-04-26 21:25:02 +00:00
behzad nouri 913ad79cd9
patches bug in data-shred index sanitize (#24707)
https://github.com/solana-labs/solana/pull/24653
introduced an off-by-one error in data-shred index sanitize.
2022-04-26 21:10:27 +00:00
Haoran Yi 7de339cb5c remove vote instruction counter query from grafana dashboard configuration 2022-04-26 14:38:44 -05:00
Haoran Yi 1ea7e7c887 remove vote instruction counters 2022-04-26 14:38:44 -05:00
DimAn e52157b98b
keygen: fix debug build after migration to clap-v3-utils (#24686) 2022-04-26 21:21:07 +02:00
Steven Luscher 3007f233f4
Log subscription for `All` no longer clobbers `Some` subscription for pubkey (#24215)
* fix: subscribing for all logs no longer clobbers pubkey-specific subscriptions
* test: write tests to cover logsSubscribe
2022-04-26 10:31:11 -07:00
Jeff Washington (jwash) 534a666153
hookup 'just_rewrites' (#24662) 2022-04-26 12:14:25 -05:00
Justin Starry 2df1c1cd52
explorer: parse compute budget instructions (#24703) 2022-04-26 17:09:00 +00:00
Richard Patel 506ee0014a rbpf-cli: add coverage flag
- adds DWARF parser using gimli
- adds coverage module to derive an execution trace to line numbers
- adds a gcov module to export a coverage profile to gcov intermediate JSON format
- add basic CLI logger
2022-04-26 10:03:13 -07:00
Justin Starry d63a4fa174
explorer: bump web3 to 1.41.0 (#24701) 2022-04-26 16:56:49 +00:00
Justin Starry b046c9a776
explorer: fix pretty printed logs for native programs without logging (#24700)
* explorer: fix pretty printed logs for native programs without logging

* prettier
2022-04-26 16:56:07 +00:00
Alexander Meißner f3d27cc400
Bumps solana_rbpf to v0.2.27 (#24694) 2022-04-26 17:58:55 +02:00
Phil Chen 6bbfef7069
feat: add support for compute budget instructions (#24086)
* Add ComputeBudgetInstruction to web3 sdk

* Prettier fix

* Rename to ComputeBudgetProgram and enable tests

Co-authored-by: Justin Starry <justin@solana.com>
2022-04-26 23:58:32 +08:00
yihau 356bda272b fix(ci): missing web3 lib 2022-04-26 23:46:14 +08:00
Justin Starry b6bc5d2fa1 Aggregate executor update timing metrics 2022-04-26 23:15:22 +08:00
Brooks Prumo edf3f05ab5
Make test_next_leader_slot_next_epoch() aware of stake minimum delegation (#24660) 2022-04-26 08:31:06 -04:00
yihau 08bb98450f chore(ci): remove unnecessary job 2022-04-26 17:49:05 +08:00
yihau adcfdfa469 chore(ci): trigger github release after semantic-release 2022-04-26 17:30:53 +08:00
yihau 8ba003aa76 feat(ci): remove --dry-run 2022-04-26 14:52:58 +08:00
yihau cddf3fc10f fix(ci): install missing module 2022-04-26 14:01:34 +08:00
Michael Vines 533eadd024 Remove StakeState::get_rent_exempt_reserve() 2022-04-25 21:43:04 -07:00
steveluscher 7791319374 chore: re-re-repair web3.js typegen 2022-04-25 21:34:58 -07:00
hanako mumei 4aeb566c85 Add maybe clone flag to solana-test-validator
add --maybe-clone, which silently ignores accounts to be cloned, rather than dying
2022-04-25 19:56:57 -07:00
HaoranYi 3abd46010c
Report metric command queue size (#24661)
* report metric command queue size

* rename buffered_points
2022-04-25 19:18:38 -05:00
HaoranYi 9044cd7179
Check insert optimization for bank_forks (#24641)
* check insert optimization

* clippy suggested simplification
2022-04-25 19:17:21 -05:00
behzad nouri 12ae8d3be5
returns Error when Shred::sanitize fails (#24653)
Including the error in the output allows to debug when Shred::sanitize
fails.
2022-04-25 23:19:37 +00:00
Brooks Prumo d6869773bb
Make rpc test_account_subscribe aware of stake minimum delegation (#24659) 2022-04-25 18:35:05 -04:00
dependabot[bot] 74b05eebd8
chore: bump num_enum from 0.5.4 to 0.5.7 (#24634)
Bumps [num_enum](https://github.com/illicitonion/num_enum) from 0.5.4 to 0.5.7.
- [Release notes](https://github.com/illicitonion/num_enum/releases)
- [Commits](https://github.com/illicitonion/num_enum/commits)

---
updated-dependencies:
- dependency-name: num_enum
  dependency-type: direct:production
  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-04-25 16:05:59 -06:00
Jeff Washington (jwash) 6ff16b1728
revert #24546 (#24647)
* Revert "declare syscalls with macro (#24564)"

38bdb401a3

* Revert "Simplify syscall register and bind (#24546)"

28ed2a9df4

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2022-04-25 15:37:43 -05:00
dependabot[bot] 75a83e4b6d
chore: bump ctrlc from 3.2.1 to 3.2.2 (#24648)
Bumps [ctrlc](https://github.com/Detegr/rust-ctrlc) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases)
- [Commits](https://github.com/Detegr/rust-ctrlc/compare/3.2.1...3.2.2)

---
updated-dependencies:
- dependency-name: ctrlc
  dependency-type: direct:production
  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-04-25 14:03:20 -06:00
steviez e8def9c89c
Variable renames for readability (#24522) 2022-04-25 14:50:26 -05:00
Tyera Eulberg d2dad51b8c
Support token-2022 in RPC account parsing (#24619)
* Use token-2022 in parsed_token_account

* Parse token-2022 accounts
2022-04-25 13:25:21 -06:00