good morning!!!!

Skip to content
Snippets Groups Projects
  1. Nov 12, 2019
  2. Jul 14, 2019
  3. May 16, 2019
    • Gary Rong's avatar
      core, cmd, vendor: fixes and database inspection tool (#15) · 37d280da
      Gary Rong authored
      * core, eth: some fixes for freezer
      
      * vendor, core/rawdb, cmd/geth: add db inspector
      
      * core, cmd/utils: check ancient store path forceily
      
      * cmd/geth, common, core/rawdb: a few fixes
      
      * cmd/geth: support windows file rename and fix rename error
      
      * core: support ancient plugin
      
      * core, cmd: streaming file copy
      
      * cmd, consensus, core, tests: keep genesis in leveldb
      
      * core: write txlookup during ancient init
      
      * core: bump database version
  4. Apr 02, 2019
  5. Mar 06, 2019
  6. Feb 04, 2019
  7. Jan 24, 2019
    • Martin Holst Swende's avatar
      core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486) · ecb78129
      Martin Holst Swende authored
      This PR adds a new fork which disables EIP-1283. Internally it's called Petersburg,
      but the genesis/config field is ConstantinopleFix.
      
      The block numbers are:
      
          7280000 for Constantinople on Mainnet
          7280000 for ConstantinopleFix on Mainnet
          4939394 for ConstantinopleFix on Ropsten
          9999999 for ConstantinopleFix on Rinkeby (real number decided later)
      
      This PR also defaults to using the same ConstantinopleFix number as whatever
      Constantinople is set to. That is, it will default to mainnet behaviour if ConstantinopleFix
      is not set.This means that for private networks which have already transitioned
      to Constantinople, this PR will break the network unless ConstantinopleFix is
      explicitly set!
      ecb78129
  8. Dec 11, 2018
  9. Sep 19, 2018
  10. May 09, 2018
  11. May 07, 2018
  12. Feb 05, 2018
  13. Jan 03, 2018
  14. Nov 08, 2017
  15. Oct 24, 2017
  16. Jul 17, 2017
  17. Jul 11, 2017
    • Felix Lange's avatar
      tests: update tests and implement general state tests (#14734) · 225de7ca
      Felix Lange authored
      Tests are now included as a submodule. This should make updating easier
      and removes ~60MB of JSON data from the working copy.
      
      State tests are replaced by General State Tests, which run the same test
      with multiple fork configurations.
      
      With the new test runner, consensus tests are run as subtests by walking
      json files. Many hex issues have been fixed upstream since the last
      update and most custom parsing code is replaced by existing JSON hex
      types. Tests can now be marked as 'expected failures', ensuring that
      fixes for those tests will trigger an update to test configuration. The
      new test runner also supports parallel execution and the -short flag.
      225de7ca
  18. Jul 04, 2017
  19. 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
  20. May 25, 2017
  21. May 04, 2017
  22. Apr 20, 2017
  23. Apr 06, 2017
  24. Mar 27, 2017
  25. 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
  26. Feb 28, 2017
  27. Feb 26, 2017
    • Felix Lange's avatar
      common: move big integer math to common/math (#3699) · 5c8fe28b
      Felix Lange authored
      * common: remove CurrencyToString
      
      Move denomination values to params instead.
      
      * common: delete dead code
      
      * common: move big integer operations to common/math
      
      This commit consolidates all big integer operations into common/math and
      adds tests and documentation.
      
      There should be no change in semantics for BigPow, BigMin, BigMax, S256,
      U256, Exp and their behaviour is now locked in by tests.
      
      The BigD, BytesToBig and Bytes2Big functions don't provide additional
      value, all uses are replaced by new(big.Int).SetBytes().
      
      BigToBytes is now called PaddedBigBytes, its minimum output size
      parameter is now specified as the number of bytes instead of bits. The
      single use of this function is in the EVM's MSTORE instruction.
      
      Big and String2Big are replaced by ParseBig, which is slightly stricter.
      It previously accepted leading zeros for hexadecimal inputs but treated
      decimal inputs as octal if a leading zero digit was present.
      
      ParseUint64 is used in places where String2Big was used to decode a
      uint64.
      
      The new functions MustParseBig and MustParseUint64 are now used in many
      places where parsing errors were previously ignored.
      
      * common: delete unused big integer variables
      
      * accounts/abi: replace uses of BytesToBig with use of encoding/binary
      
      * common: remove BytesToBig
      
      * common: remove Bytes2Big
      
      * common: remove BigTrue
      
      * cmd/utils: add BigFlag and use it for error-checked integer flags
      
      While here, remove environment variable processing for DirectoryFlag
      because we don't use it.
      
      * core: add missing error checks in genesis block parser
      
      * common: remove String2Big
      
      * cmd/evm: use utils.BigFlag
      
      * common/math: check for 256 bit overflow in ParseBig
      
      This is supposed to prevent silent overflow/truncation of values in the
      genesis block JSON. Without this check, a genesis block that set a
      balance larger than 256 bits would lead to weird behaviour in the VM.
      
      * cmd/utils: fixup import
      5c8fe28b
  28. Feb 23, 2017
  29. Feb 13, 2017
  30. Jan 24, 2017
  31. Jan 12, 2017
  32. Jan 05, 2017
  33. Nov 23, 2016
  34. 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
  35. Jun 07, 2016
  36. Apr 25, 2016
    • Jeffrey Wilcke's avatar
      core, eth: added json tag field for proper unmarshalling · c1a4dcfc
      Jeffrey Wilcke authored
      According to our own instructions the genesis config attribute should be
      "config". The genesis definition in the go code, however, has a field
      called `ChainConfig`. This field now has a `json:"config"` struct tag so
      that the json is properly unmarshalled.
      
      This fixes #2482
      c1a4dcfc
  37. Mar 31, 2016
    • 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
  38. Nov 27, 2015
Loading