-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement subscribeNewHeads
,subscriptionReorg
,subscribePendingTransactions
#2211
Open
weiihann
wants to merge
26
commits into
main
Choose a base branch
from
weiihann/2205-subscribeNewHeads
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kirugan
reviewed
Oct 11, 2024
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2211 +/- ##
==========================================
- Coverage 74.38% 74.33% -0.06%
==========================================
Files 109 110 +1
Lines 11493 11711 +218
==========================================
+ Hits 8549 8705 +156
- Misses 2278 2329 +51
- Partials 666 677 +11 ☔ View full report in Codecov by Sentry. |
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
2 times, most recently
from
October 14, 2024 09:26
a84cbfd
to
24d8885
Compare
weiihann
changed the title
Implements
Implements Oct 14, 2024
starknet_subscribeNewHeads
and starknet_subscriptionNewHeads
starknet_subscribeNewHeads
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
from
October 15, 2024 09:43
f01671a
to
fcd5e8f
Compare
weiihann
changed the title
Implements
Implements Oct 15, 2024
starknet_subscribeNewHeads
starknet_subscribeNewHeads
and starknet_subscriptionReorg
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
2 times, most recently
from
October 21, 2024 16:58
eaea8ce
to
e7ccc0a
Compare
weiihann
changed the title
Implements
Implement Oct 21, 2024
starknet_subscribeNewHeads
and starknet_subscriptionReorg
starknet_subscribeNewHeads
,starknet_subscriptionReorg
,starknet_subscribePendingTransactions
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
from
October 21, 2024 17:01
e7ccc0a
to
8efccc0
Compare
pnowosie
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
from
October 23, 2024 12:16
8efccc0
to
19641b8
Compare
pnowosie
reviewed
Oct 25, 2024
weiihann
changed the title
Implement
Implement Oct 25, 2024
starknet_subscribeNewHeads
,starknet_subscriptionReorg
,starknet_subscribePendingTransactions
subscribeNewHeads
,subscriptionReorg
,subscribePendingTransactions
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
2 times, most recently
from
October 29, 2024 09:30
c84636c
to
a4cc367
Compare
commit 7687360 Author: Ng Wei Han <47109095+weiihann@users.noreply.github.com> Date: Thu Dec 12 18:54:32 2024 +0800 Remove size in OrderedSet (#2319) commit 65b7507 Author: Ng Wei Han <47109095+weiihann@users.noreply.github.com> Date: Thu Dec 12 18:20:55 2024 +0800 Fix and refactor trie proof logics (#2252) commit 2b1b219 Author: aleven1999 <andrei.levenstein@gmail.com> Date: Thu Dec 12 12:11:28 2024 +0400 Remove unused code (#2318) commit 0a21162 Author: Daniil Ankushin <ankushin.daniil42@gmail.com> Date: Thu Dec 12 00:04:08 2024 +0700 Remove unused code (#2317) commit 8bf9be9 Author: Rian Hughes <rian.hughes@physics.ox.ac.uk> Date: Wed Dec 11 14:11:22 2024 +0200 update invoke v3 txn validation to require sender_address (#2308) commit 91d0f8e Author: Kirill <paltsev.kir@gmail.com> Date: Wed Dec 11 16:01:10 2024 +0400 Add schema_version to output of db info command (#2309) commit 60e8cc9 Author: AnavarKh <108727035+AnavarKh@users.noreply.github.com> Date: Wed Dec 11 16:04:31 2024 +0530 Update download link for Juno snapshots from dev to io in Readme file (#2314) commit 8862de1 Author: wojciechos <wojciech.zieba@nethermind.io> Date: Wed Dec 11 11:20:02 2024 +0100 Improve binary build workflow for cross-platform releases (#2315) - Add proper architecture handling in matrix configuration - Implement caching for Go modules and Rust dependencies - Streamline dependency installation for both Linux and macOS - Improve binary artifact handling and checksums - Add retention policy for build artifacts - Split build steps for better clarity and maintainability This update ensures more reliable and efficient binary builds across all supported platforms. commit e75e504 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Dec 11 07:35:16 2024 +0000 Bump nanoid from 3.3.7 to 3.3.8 in /docs in the npm_and_yarn group across 1 directory (#2316) Bump nanoid in /docs in the npm_and_yarn group across 1 directory Bumps the npm_and_yarn group with 1 update in the /docs directory: [nanoid](https://github.com/ai/nanoid). Updates `nanoid` from 3.3.7 to 3.3.8 - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](ai/nanoid@3.3.7...3.3.8) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 3a7abeb Author: wojciechos <wojciech.zieba@nethermind.io> Date: Tue Dec 10 21:52:49 2024 +0100 Skip error logs for FGW responses with NOT_RECEIVED status (#2303) * Add NotReceived case handling in adaptTransactionStatus --------- Co-authored-by: Rian Hughes <rian.hughes@physics.ox.ac.uk>
commit 4ff174d Author: IronGauntlets <aneequesafdar@gmail.com> Date: Fri Apr 26 22:10:44 2024 +0100 Move pending to sync package In order to moved handling of pending to synchroniser the following changes needed to be made: - Add database to synchroniser, so that pending state can be served - Blockchain and Events Filter have a pendingBlockFn() which returns the pending block. Due to import cycle pending struct could not be referenced, therefore, the anonymous function is passed. - Add PendingBlock() to return just the pending block, this was mainly added to support the pendingBlockFn(). - In rpc package the pending block and state is retrieved through synchroniser. Therefore, receipt and transaction handler now check the pending block for the requested transaction/receipt. commit fb75cd6 Author: IronGauntlets <aneequesafdar@gmail.com> Date: Fri Apr 26 15:18:33 2024 +0100 Rename cachedPending to pending commit 3ffc458 Author: IronGauntlets <aneequesafdar@gmail.com> Date: Fri Apr 26 01:27:53 2024 +0100 Check pending block protocol version before storing commit 317ca38 Author: IronGauntlets <aneequesafdar@gmail.com> Date: Fri Apr 26 00:52:59 2024 +0100 Refactor blockchain.Pending to return a reference commit 03f4bfa Author: IronGauntlets <aneequesafdar@gmail.com> Date: Mon Apr 22 21:16:22 2024 +0100 Remove pending and empty pending from DB Pending Block is now only managed in memory this is to make sure that pending block in the DB and in memory do not become out of sync. Before the pending block was managed in memory as a cache, however, since there is only one pending block at a given time it doesn't make sense to keep track of pending block in both memory and DB. To reduce the number of block not found errors while simulating transactions it was decided to store empty pending block, using the latest header to fill in fields such as block number, parent block hash, etc. This meant that any time we didn't have a pending block this empty pending block would be served along with empty state diff and classes. Every time a new block was added to the blockchain a new empty pending block was also added to the DB. The unforeseen side effect of this change was when the --poll-pending-interval flag was disabled the rpc would still serve a pending block. This is incorrect behaviour. As the blocks changed per new versions of starknet the empty block also needed to be changed and a storage diff with a special contract "0x1" needed to be updated in the state diff. This overhead is unnecessary and incorrectly informs the user that there is a pending block when there isn't one.
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
from
December 13, 2024 02:11
40a8af2
to
a624ed2
Compare
weiihann
force-pushed
the
weiihann/2205-subscribeNewHeads
branch
from
December 13, 2024 02:30
a624ed2
to
9c99505
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #2205
Fixes #2207
Fixes #2232
The difference between the previous implementation of
juno_subscribeNewHeads
is that it supports streaming historical block headers up to 1024 blocks ago, as per the specification.