Open yihuang opened 1 year ago
open a http server to serve these files.
probably ok to ask user to setup a third-party http server for this, after all, we are talking about setting up distributed service here.
how do we know the result of the state query from the untrusted party is correct? How do we verify it?
how do we know the result of the state query from the untrusted party is correct? How do we verify it?
it's only for trusted parties, like the public rpc services.
Currently to provide distributed public json-rpc service, one need to run multiple full nodes, each node sync the chain directly. With the help of recent new features, it's possible to replicate the chain state directly and setup cheaper distributed query service.
--grpc-only
mode.We just need one more piece to complete the puzzle: replicate the state stream across multiple processes.
Implementation ideas:
--grpc-only
mode, and sync the stream files in the order of block numbers, feed them to the version db^2.Future Works
grpc service alone is not very interesting in the context of cronos, json-rpc is more important, for json-rpc service to work, we also need to sync the tendermint dbs(mainly the raw blocks and tx execution results).