good morning!!!!

Skip to content
Snippets Groups Projects
  1. Nov 12, 2019
  2. May 10, 2019
  3. Apr 30, 2019
  4. Apr 15, 2019
  5. Apr 02, 2019
  6. Feb 08, 2019
  7. Nov 07, 2018
    • Felix Lange's avatar
      eth/downloader: speed up tests by generating chain only once (#17916) · 0bcff8f5
      Felix Lange authored
      * core: speed up GenerateChain
      
      Use a mock implementation of ChainReader instead of creating
      and destroying a BlockChain object for each generated block.
      
      * eth/downloader: speed up tests by generating chain only once
      
      This change reworks the downloader tests so they share a common test
      blockchain instead of generating a chain in every test. The tests are
      roughly twice as fast now.
      0bcff8f5
  8. Sep 20, 2018
  9. Sep 11, 2018
  10. Aug 29, 2018
  11. Jun 19, 2018
  12. May 09, 2018
  13. Feb 05, 2018
  14. Jan 29, 2018
  15. Jan 03, 2018
  16. Dec 22, 2017
  17. Oct 24, 2017
  18. Aug 24, 2017
  19. Aug 18, 2017
  20. Jun 30, 2017
    • Péter Szilágyi's avatar
      consensus, core: EIP 100 polishes, fix chain maker diff · 8c313eed
      Péter Szilágyi authored
      This PR polishes the EIP 100 difficulty adjustment algorithm
      to match the same mechanisms as the Homestead was implemented
      to keep the code uniform. It also avoids a few memory allocs
      by reusing big1 and big2, pulling it out of the common package
      and into ethash.
      
      The commit also fixes chain maker to forward the uncle hash
      when creating a simulated chain (it wasn't needed until now
      so we just skipped a copy there).
      8c313eed
  21. Jun 27, 2017
    • Felix Lange's avatar
      core/state: access trie through Database interface, track errors (#14589) · 9e5f03b6
      Felix Lange authored
      With this commit, core/state's access to the underlying key/value database is
      mediated through an interface. Database errors are tracked in StateDB and
      returned by CommitTo or the new Error method.
      
      Motivation for this change: We can remove the light client's duplicated copy of
      core/state. The light client now supports node iteration, so tracing and storage
      enumeration can work with the light client (not implemented in this commit).
      9e5f03b6
  22. May 25, 2017
    • changhong's avatar
      core: typos and comments improve · 17f0b119
      changhong authored
      1. fix typos
      2. methods recevier of struct should be same
      3. comments improve
      
      (cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
      17f0b119
  23. May 18, 2017
    • Jeffrey Wilcke's avatar
      a5f6a1cb
    • Jeffrey Wilcke's avatar
      consensus, core/*, params: metropolis preparation refactor · 10a57fc3
      Jeffrey Wilcke authored
      This commit is a preparation for the upcoming metropolis hardfork. It
      prepares the state, core and vm packages such that integration with
      metropolis becomes less of a hassle.
      
      * Difficulty calculation requires header instead of individual
        parameters
      * statedb.StartRecord renamed to statedb.Prepare and added Finalise
        method required by metropolis, which removes unwanted accounts from
        the state (i.e. selfdestruct)
      * State keeps record of destructed objects (in addition to dirty
        objects)
      * core/vm pre-compiles may now return errors
      * core/vm pre-compiles gas check now take the full byte slice as argument
        instead of just the size
      * core/vm now keeps several hard-fork instruction tables instead of a
        single instruction table and removes the need for hard-fork checks in
        the instructions
      * core/vm contains a empty restruction function which is added in
        preparation of metropolis write-only mode operations
      * Adds the bn256 curve
      * Adds and sets the metropolis chain config block parameters (2^64-1)
      10a57fc3
  24. Apr 12, 2017
  25. Apr 04, 2017
  26. Mar 23, 2017
    • Felix Lange's avatar
      core: refactor genesis handling · 37dd9086
      Felix Lange authored
      This commit solves several issues concerning the genesis block:
      
      * Genesis/ChainConfig loading was handled by cmd/geth code. This left
        library users in the cold. They could specify a JSON-encoded
        string and overwrite the config, but didn't get any of the additional
        checks performed by geth.
      * Decoding and writing of genesis JSON was conflated in
        WriteGenesisBlock. This made it a lot harder to embed the genesis
        block into the forthcoming config file loader. This commit changes
        things so there is a single Genesis type that represents genesis
        blocks. All uses of Write*Genesis* are changed to use the new type
        instead.
      * If the chain config supplied by the user was incompatible with the
        current chain (i.e. the chain had already advanced beyond a scheduled
        fork), it got overwritten. This is not an issue in practice because
        previous forks have always had the highest total difficulty. It might
        matter in the future though. The new code reverts the local chain to
        the point of the fork when upgrading configuration.
      
      The change to genesis block data removes compression library
      dependencies from package core.
      37dd9086
  27. Mar 09, 2017
  28. Jan 17, 2017
  29. Jan 05, 2017
    • Jeffrey Wilcke's avatar
      core/vm: improved EVM run loop & instruction calling (#3378) · bbc4ea4a
      Jeffrey Wilcke authored
      The run loop, which previously contained custom opcode executes have been
      removed and has been simplified to a few checks.
      
      Each operation consists of 4 elements: execution function, gas cost function,
      stack validation function and memory size function. The execution function
      implements the operation's runtime behaviour, the gas cost function implements
      the operation gas costs function and greatly depends on the memory and stack,
      the stack validation function validates the stack and makes sure that enough
      items can be popped off and pushed on and the memory size function calculates
      the memory required for the operation and returns it.
      
      This commit also allows the EVM to go unmetered. This is helpful for offline
      operations such as contract calls.
      bbc4ea4a
  30. Nov 13, 2016
    • Jeffrey Wilcke's avatar
      core, core/state, trie: EIP158, reprice & skip empty account write · 445feaee
      Jeffrey Wilcke authored
      
      This commit implements EIP158 part 1, 2, 3 & 4
      
      1. If an account is empty it's no longer written to the trie. An empty
        account is defined as (balance=0, nonce=0, storage=0, code=0).
      2. Delete an empty account if it's touched
      3. An empty account is redefined as either non-existent or empty.
      4. Zero value calls and zero value suicides no longer consume the 25k
        reation costs.
      
      params: moved core/config to params
      
      Signed-off-by: default avatarJeffrey Wilcke <jeffrey@ethereum.org>
      445feaee
  31. Oct 06, 2016
    • Felix Lange's avatar
      core/state: implement reverts by journaling all changes · 1f1ea18b
      Felix Lange authored
      This commit replaces the deep-copy based state revert mechanism with a
      linear complexity journal. This commit also hides several internal
      StateDB methods to limit the number of ways in which calling code can
      use the journal incorrectly.
      
      As usual consultation and bug fixes to the initial implementation were
      provided by @karalabe, @obscuren and @Arachnid. Thank you!
      1f1ea18b
  32. Jul 15, 2016
  33. Mar 31, 2016
    • Jeffrey Wilcke's avatar
      accounts/a/b/backends, core: chain maker homestead block set to 0 · 9055c16e
      Jeffrey Wilcke authored
      The chain maker and the simulated backend now run with a homestead phase
      beginning at block 0 (i.e. there's no frontier).
      
      This commit also fixes up #2388
      9055c16e
    • Jeffrey Wilcke's avatar
      core: added basic chain configuration · f0cbebb1
      Jeffrey Wilcke authored
      Added chain configuration options and write out during genesis database
      insertion. If no "config" was found, nothing is written to the database.
      
      Configurations are written on a per genesis base. This means
      that any chain (which is identified by it's genesis hash) can have their
      own chain settings.
      f0cbebb1
  34. Mar 23, 2016
  35. Mar 15, 2016
  36. Jan 11, 2016
  37. Dec 18, 2015
    • Felix Lange's avatar
      eth/downloader: fix negative balance issue in tests · 9be5d5cd
      Felix Lange authored
      The test chain generated by makeChainFork included invalid uncle
      headers, crashing the generator during the state commit.
      
      The headers were invalid because they used the iteration counter as the
      block number, even though makeChainFork uses a block with number > 0 as
      the parent. Fix this by introducing BlockGen.Number, which allows
      accessing the actual number of the block being generated.
      9be5d5cd
Loading