Questions tagged [state-trie]
102 questions
8
votes
3 answers
Reading Ethereum contract state variables
Is this assumption correct ?
There is absolutely no way an ethereum contract can send data to the external world. It can only modify its state variables (later stored in the new block)and send messages to other contracts. States can only be…
RajCherla
- 121
- 3
4
votes
1 answer
Exploring Ethereum's state trie with golang
Exploring Ethereum's state trie with Node.js
It is a nice article to explore ethereum internal storage, but the code is Node.js.
Does anyone have a golang version?
Shawn Guo
- 211
- 2
- 4
3
votes
1 answer
How Ethereum state tree is formed?
As we know each block contains a state-root. Following image is taken from
https://blog.ethereum.org/2015/11/15/merkling-in-ethereum/.
Ethereum Wiki:
Constant light client reference: light clients can at any point access
all data related to an…
alper
- 8,395
- 11
- 63
- 152
2
votes
2 answers
If the World State only Stores Hashes of the Code, Where Is the Underlying Actual Code Stored?
Apologies in advance if it's a silly question.
I'm slowly making my way through the ethereum yellow paper.
Am I correct in saying that the ethereum world state does not contain any EVM code? It only contains hashes of the code, right?
My train of…
Dolev-Yao
- 21
- 2
1
vote
0 answers
Would full but not archive node delete old trie node from LVLDB?
Full not archive node would store the nearest 128 block's state in their lvldb. How could they delete old trie state in lvldb? I found they use dereference function in WriteBlockWithState function to delete it in cached triedb, but it would not…
zcsama
- 21
- 2
1
vote
0 answers
Why do we need to keep state trie? Only for the computation speed?
I'm studying solidity these days and came up with this silly question.
Is there any other reason why every node is maintaining state trie?
ssexyryan
- 11
- 1
1
vote
1 answer
Can state trie be hacked?
Ethereum's purpose is to decentralize components in the network. There is only one state trie in the network, Can't it be hacked and changed (because there is only one trie) ?
adi
- 197
- 1
- 10