good morning!!!!

Skip to content
Snippets Groups Projects
  1. 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
    • Zahoor Mohamed's avatar
  2. Mar 09, 2017
  3. Mar 08, 2017
  4. 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
  5. Mar 01, 2017
  6. Feb 28, 2017
  7. Feb 27, 2017
  8. 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
  9. Feb 23, 2017
  10. Feb 22, 2017
  11. Feb 20, 2017
    • Jeffrey Wilcke's avatar
      cmd/geth: added 'geth bug' command (#3684) · 94334c23
      Jeffrey Wilcke authored
      * cmd/geth: added 'geth bug' command
      
      Added bug command to geth, which will open a browser window
      with an issue template and some additional system information.
      
      * cmd/geth: update bug with better infos
      
      * cmd/geth: added browser fallback
      
      * cmd/geth: govet yo momma
      94334c23
  12. Feb 14, 2017
    • gluk256's avatar
      whisper: interface changed to simplify the transition to v5 · 15a609d5
      gluk256 authored
      * whisper: mailserver test introduced, refactoring
      
      * whisper: validation test updated
      
      * whisper: max number of peers fixed
      
      * whisper: verification bug fixed
      
      * whisper: esthetic fix
      
      * whisper: interface changed to simplify the transition to v5
      
      * whisper: preparation for version switch
      15a609d5
  13. Feb 13, 2017
  14. Feb 06, 2017
  15. Feb 02, 2017
    • Jeffrey Wilcke's avatar
      params: core, core/vm, miner: 64bit gas instructions (#3514) · 8b57c494
      Jeffrey Wilcke authored
      Reworked the EVM gas instructions to use 64bit integers rather than
      arbitrary size big ints. All gas operations, be it additions,
      multiplications or divisions, are checked and guarded against 64 bit
      integer overflows.
      
      In additon, most of the protocol paramaters in the params package have
      been converted to uint64 and are now constants rather than variables.
      
      * common/math: added overflow check ops
      * core: vmenv, env renamed to evm
      * eth, internal/ethapi, les: unmetered eth_call and cancel methods
      * core/vm: implemented big.Int pool for evm instructions
      * core/vm: unexported intPool methods & verification methods
      * core/vm: added memoryGasCost overflow check and test
      8b57c494
  16. Jan 31, 2017
Loading