Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    mallyx3
    @mallyx3
    i however am not automining and control when i mine blocks
    but for some reason, some transactions that are successfully sent are not included in the mined block
    mallyx3
    @mallyx3
    it seems to be that when there are more than 6 transactions included in a block
    they are not included in the transaction list
    Jason Carver
    @carver
    Just did another release with support for py-evm v0.3.0-alpha.1
    Just some guy
    @fubuloubu
    Woo!
    WORAPOB BOONPRAPAI
    @SAYONG
    Hello everyone, I'm using eth-tester and py-evm backend.
    My use case is I want to have a large pre-existing state before testcases got execute.
    My question is can eth-tester export chain state to file and can import it later?
    Jacques Wagener
    @jacqueswww
    @SAYONG if you are using pytest you can use a fixture with the correct scoping
    ie. it will generate once for the whole test run
    WORAPOB BOONPRAPAI
    @SAYONG
    @jacqueswww Thanks for your reply.
    The fixture will generate transactions data every time it run the new test right?
    but the pre-existing chian data is quite large (~10k - 100k transactions), it would take a lot time to generate.
    What I want to do is generate all blocks once and can reuse it every time run test again.
    Jacques Wagener
    @jacqueswww
    yes, so would be a fixture for the whole test
    I am not aware of a dump to disk for eth-tester
    WORAPOB BOONPRAPAI
    @SAYONG
    No problem, I'll continue dig int to it :)
    Voith Mascarenhas
    @voith
    @SAYONG eth-tester by default uses the MemoryDb(eth.db.backends.memory.MemoryDB) backend for storage. You can change this by setting environment variable CHAIN_DB_BACKEND_CLASS to LevelDb(eth.db.backends.level.LevelDB) backend. You’ll have to play around it a bit to get it to work with a pre-filled state.
    You can start by looking at this code: https://github.com/ethereum/eth-tester/blob/c1a2aee7cb66a85f005369fe6e4a4b6f84c4abf6/eth_tester/backends/pyevm/main.py#L174
    Jacques Wagener
    @jacqueswww
    cool!
    WORAPOB BOONPRAPAI
    @SAYONG
    @voith Thanks, I'll try it out
    Just some guy
    @fubuloubu
    Is levelDB faster?
    (like a lot faster?)
    Voith Mascarenhas
    @voith
    @fubuloubu I don’t know about the performance of levelDb.
    But in order to solve the problem of pre-filled state, we need a persistent db. The default MemoryDB doesn’t persist data.
    Also IMO, levelDbcannot be faster than MemoryDb as levelDb writes to disk.
    Just some guy
    @fubuloubu
    Fair
    Jason Carver
    @carver
    eth-tester with istanbul support is out: v0.2.0-beta.3 @/all
    Just some guy
    @fubuloubu
    Wait, does beta mean a release is planned?
    *first release
    Voith Mascarenhas
    @voith
    @fubuloubu Haven’t eth-tester releases always been beta? https://github.com/ethereum/eth-tester/releases
    Just some guy
    @fubuloubu
    Oh yeah, py-evm is what I was thinking of
    Just some guy
    @fubuloubu
    Does this actually work?
    Just some guy
    @fubuloubu
    yup, appears it does
    does eth-tester use whatever the latest VM class is?
    Jason Carver
    @carver
    yup
    someday we'll get it to load genesis files (need to move the genesis tooling to py-evm first
    Jason Carver
    @carver
    @/all eth-tester v0.3.0-beta.1 is released, with default Istanbul support, and the latest py-evm changes:
    Just some guy
    @fubuloubu
    Nice!
    Sumon Bormon Singh(Dark Prince)
    @BORMONSUMON_twitter
    hello....all keep me your help ,support,advice,assist,security me
    Konstantin Yatsenko
    @kyatsenko
    I have an Ethereum based blockchain and test it by using web3.py API. I wonder, can eth-tester somehow help me to do this easier? Thnks.
    Jacques Wagener
    @jacqueswww
    if it's a ETH/ETC eth-tester can emulate it. But if it's EVMlike i.e. not vanilla ETH EVM then no
    Sumon Bormon Singh(Dark Prince)
    @BORMONSUMON_twitter
    Hello World #all 🙏

    all

    Ben Scherrey
    @scherrey
    Does eth-tester have a mechanism where I can jump back to a previous block and start from that known state? Seems an obvious and very handy capability for thorough testing of all contract conditions.
    Just some guy
    @fubuloubu
    you can use a snapshot
    Ben Scherrey
    @scherrey
    How is that done?
    Ben Scherrey
    @scherrey
    Ah found it - many thanks!
    Ben Scherrey
    @scherrey
    Is it possible from a tx_dict to determine what the name of the public function called for that transaction was?
    Just some guy
    @fubuloubu
    I think the ABI selector might be in there, you'd have to know what those 4 bytes corresponded to
    probably just better off looking directly at the transaction data though
    Peteris Erins
    @Pet3ris
    Eth-tester seems to use a custom MainnetTesterNoProofChain(MiningChain) instead of the MainnetTesterChain provided in py-evm. What's the difference between the two?
    Just some guy
    @fubuloubu
    I believe it skips the PoW
    that's important because if you do things like timewarping like 1000 blocks, even very low difficulty PoW becomes a limiting factor