MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / new

Method new

chain/src/world_state.rs:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8impl WorldState {
9 pub(crate) fn new() -> Self {
10 WorldState {
11 state_trie: H256::zero(),
12 }
13 }
14
15 pub(crate) fn update_state_trie(&mut self, hash: H256) {
16 self.state_trie = hash;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected