-
Notifications
You must be signed in to change notification settings - Fork 170
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2211 +/- ##
==========================================
- Coverage 75.63% 75.56% -0.08%
==========================================
Files 104 105 +1
Lines 11102 11344 +242
==========================================
+ Hits 8397 8572 +175
- Misses 2073 2123 +50
- Partials 632 649 +17 ☔ View full report in Codecov by Sentry. |
a84cbfd
to
24d8885
Compare
starknet_subscribeNewHeads
and starknet_subscriptionNewHeads
starknet_subscribeNewHeads
f01671a
to
fcd5e8f
Compare
starknet_subscribeNewHeads
starknet_subscribeNewHeads
and starknet_subscriptionReorg
eaea8ce
to
e7ccc0a
Compare
starknet_subscribeNewHeads
and starknet_subscriptionReorg
starknet_subscribeNewHeads
,starknet_subscriptionReorg
,starknet_subscribePendingTransactions
e7ccc0a
to
8efccc0
Compare
8efccc0
to
19641b8
Compare
EndBlockNum: head.Number, | ||
} | ||
} else { // not the first block of the reorg, adjust the starting block | ||
s.currReorg.StartBlockHash = localHead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we're reverting backwards, so previously set head.Number
> currently reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain further? I didn't get what you meant.
starknet_subscribeNewHeads
,starknet_subscriptionReorg
,starknet_subscribePendingTransactions
subscribeNewHeads
,subscriptionReorg
,subscribePendingTransactions
c680bbf
to
e3b5e9b
Compare
c84636c
to
a4cc367
Compare
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.