Questions tagged [state-transition]

State transitions being direct transfers of value and information between accounts.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

How to get a storage change of a transaction with geth like tenderly?

In Tenderly there is a state change section. How can I get this info with my geth node?
user avatar
  • 13
0 votes
1 answer
17 views

Are there a sub-class of transactions which do not change EVM State?

I was reading this article on https://ethereum.org/en/developers/docs/transactions/ . It said all transactions which change the EVM state must be broadcasted to the whole network . Just wondering if ...
user avatar
1 vote
2 answers
87 views

Is EVM deterministic?

Unlike something like JVM or CIL, EVM is said to be deterministic and understandably so when multiple nodes in a decentralized network have to simultaneously work together. But, EVM is also said to be ...
user avatar
  • 617
1 vote
1 answer
23 views

World state in Ethereum - Always 1 turn lagging?

About the data in Ethereum block header, there is the State root from the World state trie. However this World state trie contain the whole Accounts states (EOA + CA). In a block, we have transactions ...
user avatar
  • 21
1 vote
0 answers
24 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 ...
user avatar
0 votes
0 answers
40 views

Why is shared mutable state on the ETH network considered problematic?

I understand shared mutable state as describing a situation in which two or more parties control the same data. If their lifetimes or execution periods overlap, this can cause an issue. But in the ...
user avatar
  • 75
2 votes
0 answers
205 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....
user avatar
3 votes
0 answers
121 views

What happens in the account state when we pre-send ethers to a smart contract?

I'm asking this question in relation to this one : pre_sending Ether where the OP asked in a comment of the answer about what happens at the low-level when pre-sending ethers to a smart contract. As ...
user avatar
  • 3,847
0 votes
2 answers
1k views

How Ethereum supports in dealing with double spending problems

Let's us consider a scenario where I am using my ethereum wallet for creating a transaction request (where my account balance is 100 eth and I am doing a transaction of 50 eth to someone from one ...
user avatar
  • 36
1 vote
2 answers
313 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 ...
user avatar
0 votes
1 answer
99 views

Why some transaction errors lead to discarding the whole block?

In terms of go-ethereum code, transaction errors can be grouped into (I made up the terminology) several categories by their effect on state transition. System errors: like database connection issues....
user avatar
1 vote
1 answer
112 views

Is there any way to only find blocks where state changes of a contract occurred?

I'm currently using the ethereumjs libraries (https://github.com/ethereumjs) to iterate over the blockchain, replay transactions and read the state trie of a contract from the geth leveldb. Currently ...
user avatar
2 votes
1 answer
394 views

Reason for World State

All Ethereum blocks contain a stateRoot field - That is, the root hash of the world state trie. I have two questions about that. From what I've understood through all the reading I've done on Casper ...
user avatar
5 votes
1 answer
9k views

How do you send Ether as a function to a contract using Remix?

New to Solidity... When deploying a contract on a private blockchain using Remix, I am unable to execute payable functions. When executing these functions, the following error message displays: gas ...
user avatar
  • 177
0 votes
1 answer
10k views

How to send Ether to a contract successfully?

New to Solidity... I am studying how to deposit Ether into a smart contract by setting a parameter in a function. Based on the value the function receives, the msg.sender is able to send a ...
user avatar
  • 177
0 votes
1 answer
210 views

How can Ether be withdrawn from a contract successfully using transfer?

New to Solidity... I am studying how to withdraw Ether from a smart contract by setting a parameter in a function. Based on the value the function receives, an amount of Ether is sent to a contract ...
user avatar
  • 177
2 votes
1 answer
390 views

Is it possible write a test for Truffle to validate that I am preventing unpredictable state variable changes in my contracts?

I recently read this paper on designing secure smart contracts, and it gives the following modifier to ensure that when an EOA (or contract address) interacts with your original contract that the ...
user avatar
  • 422
2 votes
1 answer
632 views

Formal definition of the EVM as a Turing Machine

I am trying to understand the EVM in the context of a classic Turing Machine. I have read through the yellow paper and taken what I can from the internet, but I still feel like I could use some help ...
user avatar
0 votes
2 answers
463 views

Transactions and contract state

Imagine I have a contract that allows people to buy tokens. After some time, only one token left, but two persons try to buy this token at nearly the exact same time from the same node (a web server)....
user avatar
0 votes
0 answers
40 views

State transiation logic

I read the whitepaper of ethereum and I have a question: APPLY(S,TX) -> S' My question is since S is defined as a set of UTXO, but AFAIK the blockchain does not store each balance in a block, is ...
user avatar
  • 424
1 vote
1 answer
294 views

More questions about changing a smart contract state (variable)

Assume we have a smart contract that has a state variable as follows: uint data=32; The contract is stored in the blockchain. We have two transactions tx1, and tx2 sent to the contract one after ...
user avatar
1 vote
1 answer
309 views

How is a post-transaction state calculated?

A receipt from rpc returns a root which I believe is the "post-transaction state" from the yellow paper. The internet seems to say this is the same thing as the full stateRoot at the exact moment ...
user avatar
  • 2,570
5 votes
2 answers
4k views

What does it mean by smart contract state.Where they get stored?

I am new to ethereum. We understand that whenever some new transaction made Contract state changes. What does it mean exactly by state change. Where they get stored.Are they called distributed ledger. ...
user avatar
3 votes
0 answers
104 views

Is it possible to stack transactions?

Is it possible to stack transactions which depend from themselves? Example: State on start: Account A (2 ETH), Account B (0 ETH), Account C (0 ETH) Transaction 1 - Account A sends 2 ETH to Account ...
user avatar
  • 141
1 vote
1 answer
72 views

Carry out function for either x state or y state

I've created my own struct: enum TestState {noWager, wagerMade, wagerAccepted} And my modifier: modifier onlyState(GameState expectedState){ if(expectedState == currentState){ _;} else{...
user avatar
4 votes
1 answer
191 views

Transaction propagation and acceptance on forks

Assuming the scenario where a fork occurs shortly after I have sent a transaction out, and it gets mined in my side of the fork, could it also be mined in the other side of the fork? In other words, ...
user avatar
  • 826
4 votes
0 answers
476 views

How does ethereum keep track of changes on smart contract storage? [closed]

I'm aware that ethereum has essentially 3 tree-like structures: State data Receipts data Chain data As I've just learned from this question, contract storage resides on state data tree. Digging ...
user avatar
5 votes
2 answers
815 views

Retrieving historical balance and lifespan of an address

I am coding up a PoC for a free market basic income mechanism, and am trying to figure out how to get the historical balance of msg.sender, as well as the time since that address was generated. ...
user avatar
8 votes
3 answers
5k views

Why are there no change addresses?

What's the concept behind ethereum transactions that allows them not to require change addresses? What's the underlying difference compared to - for example - bitcoin?
user avatar
  • 31.5k
7 votes
1 answer
279 views

Ethereum walk-through

Would the following story line be a fair approximation of how Ethereum would work in this simplistic scenario? Simple network with just three nodes: N1, N2 and N3 N1 writes a contract that initiates ...
user avatar
  • 5,030