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
20 views

Test in consecutive blocks

In Hardhat, is it possible to test a fork within two consecutive blocks? For example, you do this on the hardhat.config file when you want to test on a fork pinned to block 69254391: forking: { url:...
dNyrM's user avatar
  • 711
0 votes
0 answers
33 views

how to simulate a transaction before it is mined? [duplicate]

My program needs to know how the transactions in the mempool will affect the state when mined. Does anyone know of any tools to help with this? Is is possible by chaing go ethereum source code? or ...
bluehost33's user avatar
0 votes
0 answers
131 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?
T.Z.'s user avatar
  • 13
0 votes
1 answer
25 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 ...
proxima424's user avatar
1 vote
2 answers
151 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 ...
Kevvv's user avatar
  • 787
1 vote
1 answer
29 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 ...
Bracko's user avatar
  • 21
1 vote
0 answers
42 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 ...
LBrian13's user avatar
0 votes
0 answers
67 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 ...
NeilD's user avatar
  • 75
2 votes
0 answers
270 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....
Ndrslmpk's user avatar
  • 112
4 votes
0 answers
149 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 ...
clement's user avatar
  • 4,292
0 votes
2 answers
2k 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 ...
Achala's user avatar
  • 36
2 votes
2 answers
421 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 ...
Emrah Sariboz's user avatar
0 votes
1 answer
116 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
137 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 ...
RemoteRen's user avatar
2 votes
1 answer
436 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 ...
Lev Knoblock's user avatar
7 votes
1 answer
13k 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 ...
29A's user avatar
  • 347
1 vote
1 answer
14k 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 ...
29A's user avatar
  • 347
0 votes
1 answer
238 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 ...
29A's user avatar
  • 347
2 votes
1 answer
412 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 ...
Karen S's user avatar
  • 422
2 votes
1 answer
860 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 ...
le_sanglier's user avatar
0 votes
2 answers
508 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)....
Itération 122442's user avatar
0 votes
0 answers
41 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 ...
Ini's user avatar
  • 444
1 vote
1 answer
299 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 ...
user153465's user avatar
1 vote
1 answer
364 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 ...
ZMitton's user avatar
  • 2,730
6 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. ...
Budhaditya Dutta's user avatar
3 votes
0 answers
106 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 ...
MrSea's user avatar
  • 141
1 vote
1 answer
76 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{...
Connor's user avatar
  • 196
4 votes
1 answer
200 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, ...
bozzle's user avatar
  • 896
4 votes
0 answers
525 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 ...
Henrique Barcelos's user avatar
5 votes
2 answers
953 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. ...
cryptoanarchy 's 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?
q9f's user avatar
  • 32.8k
7 votes
1 answer
291 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 ...
zanzu's user avatar
  • 5,350