Questions tagged [concurrency]

In computer science, concurrency is a property of systems in which multiple computations can be performed in overlapping time periods. The computations may be executing on multiple cores in the same chip, preemptively time-shared threads on the same processor, or executed on physically separated processors.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

Is it possible for an interaction between two contracts be interfered with by another contract?

For example: 1.Contract A makes a call to contract B to retrieve a state value from B 2.Contract A then uses the data provided by contract B to create modified value 3.Contract A sends the derived ...
1
vote
0answers
14 views

Potential Concurrent Engines for Ethereum?

I have been reading some papers on the topic of concurrency on blockchains, smart contract systems to be more specific. Most of the research in the last 3 years uses Ethereum as a reference of the ...
2
votes
1answer
97 views

About transaction higher nonce than current nonce

I'm trying to build an Ethereum exchange service, so concurrent schedule is needed and nonce management is the most problem (another topic discussed about it). At specificed moment, I have large ...
0
votes
1answer
95 views

concurrency issues [duplicate]

If there are three nodes, and the contract is like that contract IncentiveMechanism{ uint public money; function setMoney(uint m){ money = money+m; } } if three nodes call the ...
1
vote
2answers
69 views

Is there any kind of locking protocol in Ethereum?

Is there any kind of locking protocol in ethereum, like can two transaction update the state variable same time ?, If yes then how would you avoid that ? Smart Contract XYZ is deployed and two people ...
0
votes
1answer
506 views

how blockchain can handle the concurrency? [duplicate]

I read some pages here about concurrency but I didn't give my answer, actually I am new to Bchain, consider this scenario: There is a game contract on the blockchain for 4 Players, so far three ...
0
votes
0answers
26 views

I am confused with the outcome below

Two contracts (code are for illustrative purposes only. Assume all syntax are correct): contract CA { function FA() public { // Invoke CB.FB() multiple times } } And contract CB ...
1
vote
2answers
59 views

Contract A has a function that depends on Contract B's state. How does concurrency work for these two contracts?

I was thinking about a scenario where one contract depends on another contract's state. For example, contract a may want to decide on its next state update based on the current state of contract b by ...
0
votes
1answer
41 views

Why doesnt Ethereum support concurrency?

Why doesnt Ethereum support concurrency? https://en.m.wikipedia.org/wiki/Concurrency_(computer_science)
0
votes
1answer
122 views

How to immediately close ethclient.Client RPC sockets so they don't linger in TIME_WAIT status on server?

My server is running out of available sockets while I am using goroutines (limited to 100 concurrently) because once a goroutine finishes the ethclient.Client socket stays open in TIME_WAIT status for ...
1
vote
1answer
160 views

Is there concurrency in smartcontracts?

I have a question about concurrency in smart contracts. For instance, I have array of structs and each struct should have a "unqiue" ID. For my needs, it is enough to have ID equal to position in ...
30
votes
3answers
4k views

Concurrency patterns for account nonce

The account nonce is the only element in the transaction structure that prevents replay attack (as explained in this very good answer). It essentially forces sequentialisation of an account's ...