good morning!!!!

Skip to content
Snippets Groups Projects
  1. May 08, 2017
  2. May 04, 2017
  3. Apr 25, 2017
    • Felix Lange's avatar
      eth: add debug_storageRangeAt · 207bd7d2
      Felix Lange authored
      207bd7d2
    • Felix Lange's avatar
      trie: add start key to NodeIterator constructors · 4047ccad
      Felix Lange authored
      The 'step' method is split into two parts, 'peek' and 'push'. peek
      returns the next state but doesn't make it current.
      
      The end of iteration was previously tracked by setting 'trie' to nil.
      End of iteration is now tracked using the 'iteratorEnd' error, which is
      slightly cleaner and requires less code.
      4047ccad
    • Felix Lange's avatar
      trie: clean up iterator constructors · a13e920a
      Felix Lange authored
      Make it so each iterator has exactly one public constructor:
      
      - NodeIterators can be created through a method.
      - Iterators can be created through NewIterator on any NodeIterator.
      a13e920a
  4. Apr 21, 2017
  5. Apr 20, 2017
  6. Apr 14, 2017
  7. Apr 12, 2017
  8. Apr 10, 2017
  9. Apr 06, 2017
  10. Apr 04, 2017
  11. Mar 29, 2017
  12. Mar 27, 2017
  13. Mar 24, 2017
  14. 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
    • Felix Lange's avatar
      core/types: handle nil ChainId in NewEIP155Signer · 67c47459
      Felix Lange authored
      All uses of ChainConfig.ChainId eventually end up in NewEIP155Signer.
      This fixes the case where users forget to set the ChainId in their
      config.
      67c47459
    • Felix Lange's avatar
      core/state: expose CommitTo · 0f4b75be
      Felix Lange authored
      0f4b75be
  15. Mar 22, 2017
  16. Mar 09, 2017
  17. Mar 07, 2017
  18. Mar 03, 2017
  19. Mar 02, 2017
    • Felix Lange's avatar
      common/hexutil: implement TextMarshaler, TextUnmarshaler · d304da38
      Felix Lange authored
      This commit makes the wrapper types more generally applicable.
      encoding.TextMarshaler is supported by most codec implementations (e.g.
      for yaml).
      
      The tests now ensure that package json actually recognizes the custom
      marshaler implementation irrespective of how it is implemented.
      
      The Uint type has new tests, too. These are tricky because uint size
      depends on the CPU word size. Turns out that there was one incorrect
      case where decoding returned ErrUint64Range instead of ErrUintRange.
      d304da38
  20. Mar 01, 2017
  21. Feb 28, 2017
  22. Feb 27, 2017
  23. 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
Loading