Commit Graph

6 Commits

Author SHA1 Message Date
Alexandru Vasile c0c08cdd5d backend: Refactor subscription to the driver chainHead
Changes done:
- seen_block_sub::filter_map is removed in favor of manual match
- optimization wrt inserting new blocks is removed
- removed the `SeenBlock` struct used for filter_mapping

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-12 19:02:52 +02:00
Alexandru Vasile b34ce7a580 Revert "backend: Add debug logs again"
This reverts commit 2fbd054ceb.
2024-01-12 19:02:49 +02:00
Alexandru Vasile 2fbd054ceb backend: Add debug logs again
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-01-12 12:44:11 +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