good morning!!!!

Skip to content
Snippets Groups Projects
  1. Oct 03, 2017
  2. Oct 02, 2017
  3. Sep 15, 2017
  4. Sep 07, 2017
  5. Aug 22, 2017
  6. Aug 18, 2017
  7. Aug 09, 2017
  8. Aug 07, 2017
  9. Jul 24, 2017
  10. Jul 14, 2017
    • Péter Szilágyi's avatar
      core: remove redundant storage of transactions and receipts (#14801) · 0ff35e17
      Péter Szilágyi authored
      * core: remove redundant storage of transactions and receipts
      
      * core, eth, internal: new transaction schema usage polishes
      
      * eth: implement upgrade mechanism for db deduplication
      
      * core, eth: drop old sequential key db upgrader
      
      * eth: close last iterator on successful db upgrage
      
      * core: prefix the lookup entries to make their purpose clearer
      0ff35e17
  11. 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
  12. Jun 27, 2017
  13. Jun 06, 2017
  14. Jun 01, 2017
  15. May 23, 2017
  16. Apr 14, 2017
  17. Apr 12, 2017
  18. Apr 04, 2017
  19. Mar 23, 2017
    • Péter Szilágyi's avatar
    • 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
    • Péter Szilágyi's avatar
  20. Mar 22, 2017
    • Felix Lange's avatar
      all: import "context" instead of "golang.org/x/net/context" · c213fd1f
      Felix Lange authored
      There is no need to depend on the old context package now that the
      minimum Go version is 1.7. The move to "context" eliminates our weird
      vendoring setup. Some vendored code still uses golang.org/x/net/context
      and it is now vendored in the normal way.
      
      This change triggered new vet checks around context.WithTimeout which
      didn't fire with golang.org/x/net/context.
      c213fd1f
  21. Mar 16, 2017
  22. Mar 09, 2017
  23. Mar 02, 2017
    • Péter Szilágyi's avatar
      Logger updates 3 (#3730) · 9184249b
      Péter Szilágyi authored
      * accounts, cmd, eth, ethdb: port logs over to new system
      
      * ethdb: drop concept of cache distribution between dbs
      
      * eth: fix some log nitpicks to make them nicer
      9184249b
  24. Feb 28, 2017
    • Felix Lange's avatar
      all: unify big.Int zero checks, use common/math in more places (#3716) · 5f782627
      Felix Lange authored
      * common/math: optimize PaddedBigBytes, use it more
      
      name              old time/op    new time/op    delta
      PaddedBigBytes-8    71.1ns ± 5%    46.1ns ± 1%  -35.15%  (p=0.000 n=20+19)
      
      name              old alloc/op   new alloc/op   delta
      PaddedBigBytes-8     48.0B ± 0%     32.0B ± 0%  -33.33%  (p=0.000 n=20+20)
      
      * all: unify big.Int zero checks
      
      Various checks were in use. This commit replaces them all with Int.Sign,
      which is cheaper and less code.
      
      eg templates:
      
          func before(x *big.Int) bool { return x.BitLen() == 0 }
          func after(x *big.Int) bool  { return x.Sign() == 0 }
      
          func before(x *big.Int) bool { return x.BitLen() > 0 }
          func after(x *big.Int) bool  { return x.Sign() != 0 }
      
          func before(x *big.Int) int { return x.Cmp(common.Big0) }
          func after(x *big.Int) int  { return x.Sign() }
      
      * common/math, crypto/secp256k1: make ReadBits public in package math
      5f782627
    • Péter Szilágyi's avatar
  25. Feb 27, 2017
  26. 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
  27. Feb 23, 2017
  28. Feb 18, 2017
  29. Feb 17, 2017
  30. Feb 13, 2017
Loading