velas / velas-chain

Other
70 stars 35 forks source link

feat(replica-node): light evm archive node #400

Closed dj8yfo closed 1 year ago

dj8yfo commented 1 year ago

Problem

Summary of Changes

Fixes #

dj8yfo commented 1 year ago

server log - https://pastebin.com/9Muim20F client log - https://pastebin.com/XXnyTp6y

time spent on multithreaded collection of changeset (89.54s) is approximately 3 times faster than time spent onsingle threaded verification (758 - 494= 264s) that all required nodes were found afterwards. though this is --debug build. --release is much faster.

dj8yfo commented 1 year ago

approach with splitting in 16^N chunks is archived here https://github.com/dj8yfo/velas-chain/tree/state-rpc-256-chunks-archive

dj8yfo commented 1 year ago
    [2023-02-06T17:08:42Z DEBUG solana_replica_lib::triedb::client::methods] changeset received Some(Hash { value: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" }) -> Some(Hash { value: "0x0b97621966e9ea12d635d792ef736190dea8b2c015458a26216504577e4236b4" }), 2944905
    vs stack method: 
    [2023-02-06T16:41:21Z DEBUG solana_replica_lib::triedb::client] persisted root 0x0b97…36b4 2944905
    3197923
dj8yfo commented 1 year ago

https://github.com/dj8yfo/velas-chain/tree/healthcheck_bigt_evm_full_blocks

dj8yfo commented 1 year ago

https://github.com/dj8yfo/velas-chain/tree/archive_eager_replica_node_balanced