question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove `is_stateless` flag

See original GitHub issue

What is wrong?

There’s an is_stateless in VM configuration now: https://github.com/ethereum/py-evm/blob/4f476908dff42e290c15fc4cfb6a3c5e65e37dfe/evm/vm/base.py#L98-L127

In is_stateless mode, the block will be deeply copied and the get the result block from VMState with updated header and transactions. And in the non-stateless mode (the old route), the state transition result would be updated in VM.

How can it be fixed

  1. Remove the is_stateless is False route.
  2. Modify Chain.apply_transaction to update the local vm state before returning the computation object.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pipermerriamcommented, Jan 18, 2018

I wonder what is the use case of Chain.apply_transaction(transaction) for full nodes or other scenarios?

For testing, full nodes, and mining are the use cases I can think of. It’s a mid/low level interface for building blocks incrementally.

1reaction
pipermerriamcommented, Jan 18, 2018

you pointed out that we should modify Chain.apply_transaction to update the local vm state before returning the computation object.

I think what I was referring to was that previously the Chain class’s state root would get updated automatically, but with the recent changes, that is no longer the case. So, the Chain object now needs to manually update the state root since it no longer happens automatically.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring stateful persistent disks in MIGs - Google Cloud
To declare all disks with a given device name as stateless, remove the disk's configuration from the stateful policy using the gcloud CLI...
Read more >
IPv6 DHCPv6 (stateful, stateless, relay, managed-config-flag ...
This CCIE oriented episode of quick configs goes into the Dynamic Host Configuration Protocol for IPv6 (DHCPv6). See http://bit.ly/1VZYkFi ...
Read more >
DHCPv6 stateful and stateless - Cisco Learning Network
Hi guys ! How to set the A flag off for stateful dhcpv6 ( A = 0, O=0;M=1 ). I know how to...
Read more >
How can I remove the debug banner in Flutter? - Stack Overflow
3.BY using dart dev tool to remove debug banner · The first one is to use the debugShowCheckModeBanner property in your MaterialApp widget....
Read more >
'No home, no team, no flag': a history of stateless athletes at ...
This tradition of letting quasi-stateless athletes compete under the Olympic Flag, instead of a single country's flag, began in 1992, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found