Geth -datadir /path/to/chain/data -syncmode "fast" -cache=2048 -rpc -rpcaddr 0.0.0.0 -rpcport 8545 -http.api "eth,net,web3,txpool" -rpccorsdomain "*" Below I’ve pasted my default startup script along with the purpose of each flag: Options that can be passed to geth at startup are listed here. This phase is called the state trie download and it actually runs concurrently with the block downloads alas it take a lot longer nowadays than downloading the blocks. These need to be downloaded separately and cross checked with the latest blocks. balances, nonces, smart contract code and data). Unfortunately this is not the case, since no transaction was executed, so we do not have any account state available (ie. Phase 2: State Trie Download: Many people falsely assume that because they have the blocks, they are in sync. Downloading all the blocks is a straightforward and fast procedure and will relatively quickly reassemble the entire chain. Phase 1: Instead of starting from the genesis block and reprocessing all the transactions that ever occurred (which could take weeks), fast sync downloads the blocks, and only verifies the associated proof-of-works. The way it works (as described here) is multiple phased: The most common type is “fast”, which is also the default type. Geth has 3 sync types: “fast”, “full”, or “light”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |