Commit Graph

24 Commits

Author SHA1 Message Date
Alexandru Vasile ad1c3558ad backend: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 18:30:39 +02:00
Alexandru Vasile 0300072310 backend: Disable panic for order testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 18:28:04 +02:00
Alexandru Vasile 9a587b360d subxt: Expose chainHeadFollow on the backend and test order of blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 18:27:28 +02:00
Alexandru Vasile 27c41a54f0 backend: More details
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 17:21:10 +02:00
Alexandru Vasile 8542a5918a backend: Panic on finalized before new
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 17:13:40 +02:00
Alexandru Vasile 21cf5cca6e backend: Don't terminate the stream without correlation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 16:40:07 +02:00
Alexandru Vasile fb0e2c75ea backend: Capture all events from the follow subscription
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 14:31:35 +02:00
Alexandru Vasile 8d0d17c810 backend: Add timeline for new + finalized entries
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-09 13:51:24 +02:00
Alexandru Vasile 81b5b1c315 TODO: backend: allow finalized before new block
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-08 20:58:13 +02:00
Alexandru Vasile 8aa6d8096b backend: Fix build
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-08 20:38:44 +02:00
Alexandru Vasile 59006a206d backend: Store parent hashes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-08 20:36:30 +02:00
Alexandru Vasile 1fd194cf76 backend: Panic after 240s instead of 120s
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-08 18:28:30 +02:00
Alexandru Vasile 1dd3b85649 backend: Don't remove block hashes on inspection
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-08 18:12:09 +02:00
Alexandru Vasile 98f0b218a5 backend: Save all seen blocks regardless finalized hash
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-08 18:09:47 +02:00
Alexandru Vasile 374a22833c backend: Check pruned blokcs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-14 17:53:39 +02:00
Alexandru Vasile 7f174a9183 backend: Unsafe debug latest finalized block
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-14 16:40:48 +02:00
Alexandru Vasile 7d3cdb29de fix/backend: Do not remove block hashes from seen blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-14 12:30:07 +02:00
Alexandru Vasile 9cec2e3d34 backend: Derive debug for seenblocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-14 08:52:44 +02:00
Alexandru Vasile 01c5b4521b backend: Use seenblocks for debugging
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-14 08:50:06 +02:00
Alexandru Vasile 523aea30e1 backend: Mem log for seen blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-13 11:58:00 +02:00
Alexandru Vasile 02bd1a2b17 backend: Memory log after 120s timeout
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-12-12 16:36:33 +02:00
James Wilson c3b433123d Sync tx submission with chainHead_follow (#1305)
* sync tx submission with chainHead_follow

* make it compile

* add small comment
2023-12-04 16:48:32 +00:00
James Wilson cf7e2db1b7 chainHead based backend implementation (#1161)
* add follow_stream impl

* follow_stream_unpin first draft

* add tests for follow_stream_unpin

* more tests and fixes for follow_stream_unpin

* first pass follow_stream_driver

* follow_stream_driver: add tests, fix things, buffer events from last finalized

* First pass finishing Backend impl

* Fix test compile issues

* clippy fixes

* clippy fix and consistify light_client

* revert lightclient tweak

* revert other lightclient thing

* cargo fmt

* start testing unstable backend behind feature flag

* more test fixes and move test-runtime metadata path just incase

* fix compile error

* ensure transaction progress stream actually used and fix another test

* cargo fmt

* CI tweak

* improve some comments and address some feedback bits

* update CI to use our own nightly binary

* wait for finalized block perhaps
2023-09-26 16:58:30 +01:00
James Wilson a3d25db846 Unstable Backend: add back the old chainHead RPCs/tests (#1137)
* add back unstable APIs and tests

* clippy fixes

* fmt with new rust

* deserialize from object or array into api versions

* remove inspect

* add some of the other unstable RPC methods we might want

* clippy fix

* no unused deps warning in test crate

* fix doc fails

* legacy -> unstable

Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com>

* runtime_updates -> with_runtiem

* add test and be consistent with naming of unstable RPCs

---------

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com>
2023-08-29 12:35:35 +01:00