NethermindEth / juno

Starknet client implementation.
https://juno.nethermind.io
Apache License 2.0
402 stars 170 forks source link

Implement `subscribeNewHeads`,`subscriptionReorg`,`subscribePendingTransactions` #2211

Open weiihann opened 1 month ago

weiihann commented 1 month ago

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.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 76.47059% with 64 lines in your changes missing coverage. Please review.

Project coverage is 75.56%. Comparing base (3093ca8) to head (a4cc367).

Files with missing lines Patch % Lines
rpc/events.go 73.17% 40 Missing and 15 partials :warning:
jsonrpc/server.go 66.66% 4 Missing and 1 partial :warning:
sync/sync.go 87.09% 4 Missing :warning:
Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.