Questions tagged [state]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
41 views

How can callable contracts have an empty account state?

On page 4 of the yellow-paper, the definition of an "empty" account is provided. An account is empty when it has no code, zero nonce and zero balance. A formal definition is then provided, ...
2
votes
2answers
110 views

Are NFTs (technically, the smart contracts) stateless or stateful?

Are the smart contracts used to manage NFTs stateless or stateful? Ethereum as a protocol seems to be stateful, but the smart contracts for NFT marketplaces seem to be stateless. They don't save any ...
2
votes
1answer
23 views

Does verification of a world state require downloading the whole ethereum blockchain?

Lets say I'm a new node on the Ethereum network, I download a world state of 500 blocks ago and I download the blockchain from that point to present (500 blocks). Can I verify that the world state I'...
2
votes
0answers
16 views

Using Eth-Brownie to fork mainnet from specific blockheight?

Can I use eth-brownie to fork mainnet from a specific blockheight? I have an archive node if that helps. I want to see what would have happened, instead of what will happen Can another service do this?...
1
vote
2answers
11 views

How does ethereum network keep consistent

Since nodes in Ethereum are decentralized and distributed, how does the system ensure consistency regarding the state of the blockchain. I am aware that a validator, once they find the answer to the ...
1
vote
2answers
168 views

Smart Contract States

I have been encountering the word 'state' in a lot of research papers, and I was wondering what they exactly mean by the state of the smart contract. I am aware of the following answer; however, it ...
1
vote
1answer
249 views

Do miners have to store the whole blockchain?

I was reading the ethereum whitepaper and encountered this paragraph. Ethereum is likely to suffer a similar growth pattern, worsened by the fact that there will be many applications on top of the ...
1
vote
0answers
7 views

Is this an accurate depiction of arbitrary state transition?

I'm looking for a bit of clarification. I'm trying to understand and help explain arbitrary state transition vs protocol-level state transition. I made a (very simple) graphic based on info from this ...
1
vote
0answers
9 views

questions on block (and header) storage in ethereum, how is it stored along with tries?

I understand that ethereum uses Trie to track the state, transactions, receipts. and each trie has key-value pair that is stored in the database. Each blockheader also has the root has of stateRoot, ...
1
vote
0answers
22 views

Retrieve size of Ethereum state on a local Go-Ethereum node

I have a local go-ethereum node and I would like to measure the size of its state on disk. The chain DB is under a .ethereum directory but measuring the size of this dir would also include space used ...
1
vote
1answer
54 views

What is a machine state in Ethereum?

Section 9.4.1. of Ethereum paper (Petersburg version 41c1837 — 2021-02-14), states that: The machine state μ is defined as the tuple (g,pc,m,i,s) which are the gas available, the program counter pc ∈ ...
1
vote
0answers
87 views

Statelessness vs statefulness - what is the difference? Comparison Bitcoin's vs. Ethereum's states

I now read multiple times about bitcoin, that it is a stateless system and that because of that bitcoin simple-purpose computations or programs can be executed at anytime and independent from any data....
1
vote
1answer
98 views

State only node

Is it possible for the network clients to just keep the latest network state (without keeping track of the past transactions) while not harming the network security? That is, is it really needed to ...
1
vote
0answers
12 views

What are the rules on persisting old transactions?

If a new node joins the network and attempts a full sync, it requires all transaction information from genesis to build up its chain state. To do this the transactions it receives must be the ...
0
votes
2answers
62 views

Does blockchain state information take up space?

When synchronising a new full node, the first step is to download all the available blocks, it's interesting to note that the node is not usable right away as it needs to pull from the network all the ...
0
votes
0answers
5 views

How does MPT update an account?

I have read that Ethereum uses a modified Merkle Patricia Trie to store information such as accounts and its balance, when updating a balance to an address does it just go thru the tree and update the ...
0
votes
1answer
17 views

Data Stream Processing on Ethereum

I developed a system that receives continual streams of requests via a REST API. For each bit of data contained in the body of the request, the sender receives an according bit of data in the response....
0
votes
1answer
18 views

ETH1 balances transition to ETH2

Can someone please explain how do the ETH1 balances become ETH2 if they don't move on-chain? How does eth1 become a shard? Is ETH2 an airdrop of eth1 balances?
0
votes
0answers
59 views

Connecting HTML buttons to functions of my smart contract

These solidity functions are part of my solidity code which i want to execute them by clickcing on a button on my HTML.One of them stands for accepting bets placeBet() and the other one for sending ...
0
votes
0answers
61 views

Should I use Parity instead of Geth?

I've been trying different things to get Geth to get a fully sync'd Geth node for the past two weeks on a host with 4 cores, 16G of memory and 2TB SSD, to no avail. The only time I get close to being ...
0
votes
1answer
27 views

How to check state of the contract after some time?

I am writing a contract where I need to check that if in 5 minutes no new token get purchased then the sale should be ended. What I mean exactly is that, lets say user A has purchased 100 tokens and ...