good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 09, 2020
    • Raw Pong Ghmoa's avatar
      cmd: deprecate --testnet, use named networks instead (#20852) · 15540ae9
      Raw Pong Ghmoa authored
      * cmd/utils: make goerli the default testnet
      
      * cmd/geth: explicitly rename testnet to ropsten
      
      * core: explicitly rename testnet to ropsten
      
      * params: explicitly rename testnet to ropsten
      
      * cmd: explicitly rename testnet to ropsten
      
      * miner: explicitly rename testnet to ropsten
      
      * mobile: allow for returning the goerli spec
      
      * tests: explicitly rename testnet to ropsten
      
      * docs: update readme to reflect changes to the default testnet
      
      * mobile: allow for configuring goerli and rinkeby nodes
      
      * cmd/geth: revert --testnet back to ropsten and mark as legacy
      
      * cmd/util: mark --testnet flag as deprecated
      
      * docs: update readme to properly reflect the 3 testnets
      
      * cmd/utils: add an explicit deprecation warning on startup
      
      * cmd/utils: swap goerli and ropsten in usage
      
      * cmd/geth: swap goerli and ropsten in usage
      
      * cmd/geth: if running a known preset, log it for convenience
      
      * docs: improve readme on usage of ropsten's testnet datadir
      
      * cmd/utils: check if legacy `testnet` datadir exists for ropsten
      
      * cmd/geth: check for legacy testnet path in console command
      
      * cmd/geth: use switch statement for complex conditions in main
      
      * cmd/geth: move known preset log statement to the very top
      
      * cmd/utils: create new ropsten configurations in the ropsten datadir
      
      * cmd/utils: makedatadir should check for existing testnet dir
      
      * cmd/geth: add legacy testnet flag to the copy db command
      
      * cmd/geth: add legacy testnet flag to the inspect command
      15540ae9
    • Marius van der Wijden's avatar
      accounts/abi/bind: fixed erroneous filtering of negative ints (#20865) · 023b87b9
      Marius van der Wijden authored
      * accounts/abi/bind: fixed erroneous packing of negative ints
      
      * accounts/abi/bind: added test cases for negative ints in topics
      
      * accounts/abi/bind: fixed genIntType for go 1.12
      
      * accounts/abi: minor  nitpick
      023b87b9
  2. Apr 08, 2020
  3. Apr 07, 2020
  4. Apr 03, 2020
    • William Morriss's avatar
      internal/ethapi: add CallArgs.ToMessage method (#20854) · 3cf7d2e9
      William Morriss authored
      ToMessage is used to convert between ethapi.CallArgs and types.Message.
      It reduces the length of the DoCall method by about half by abstracting out
      the conversion between the CallArgs and the Message. This should improve the
      code's maintainability and reusability.
      3cf7d2e9
    • Boqin Qin's avatar
      all: fix a bunch of inconsequential goroutine leaks (#20667) · be6078ad
      Boqin Qin authored
      
      The leaks were mostly in unit tests, and could all be resolved by
      adding suitably-sized channel buffers or by restructuring the test
      to not send on a channel after an error has occurred.
      
      There is an unavoidable goroutine leak in Console.Interactive: when
      we receive a signal, the line reader cannot be unblocked and will get
      stuck. This leak is now documented and I've tried to make it slightly 
      less bad by adding a one-element buffer to the output channels of
      the line-reading loop. Should the reader eventually awake from its
      blocked state (i.e. when stdin is closed), at least it won't get stuck
      trying to send to the interpreter loop which has quit long ago.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      be6078ad
    • Marius van der Wijden's avatar
      mobile: use bind.NewKeyedTransactor instead of duplicating (#20888) · 98eab2db
      Marius van der Wijden authored
      It's better to reuse the existing code to create a keyed transactor
      than to rewrite the logic again.
      98eab2db
    • Gary Rong's avatar
      rpc: metrics for JSON-RPC method calls (#20847) · be9172a7
      Gary Rong authored
      This adds a couple of metrics for tracking the timing
      and frequency of method calls:
      
      - rpc/requests gauge counts all requests
      - rpc/success gauge counts requests which return err == nil
      - rpc/failure gauge counts requests which return err != nil
      - rpc/duration/all timer tracks timing of all requests
      - rpc/duration/<method>/<success/failure> tracks per-method timing
      be9172a7
    • Luke Champine's avatar
      crypto/ecies: improve concatKDF (#20836) · 462ddce5
      Luke Champine authored
      
      This removes a bunch of weird code around the counter overflow check in
      concatKDF and makes it actually work for different hash output sizes.
      
      The overflow check worked as follows: concatKDF applies the hash function N
      times, where N is roundup(kdLen, hashsize) / hashsize. N should not
      overflow 32 bits because that would lead to a repetition in the KDF output.
      
      A couple issues with the overflow check:
      
      - It used the hash.BlockSize, which is wrong because the
        block size is about the input of the hash function. Luckily, all standard
        hash functions have a block size that's greater than the output size, so
        concatKDF didn't crash, it just generated too much key material.
      - The check used big.Int to compare against 2^32-1.
      - The calculation could still overflow before reaching the check.
      
      The new code in concatKDF doesn't check for overflow. Instead, there is a
      new check on ECIESParams which ensures that params.KeyLen is < 512. This
      removes any possibility of overflow.
      
      There are a couple of miscellaneous improvements bundled in with this
      change:
      
      - The key buffer is pre-allocated instead of appending the hash output
        to an initially empty slice.
      - The code that uses concatKDF to derive keys is now shared between Encrypt
        and Decrypt.
      - There was a redundant invocation of IsOnCurve in Decrypt. This is now removed
        because elliptic.Unmarshal already checks whether the input is a valid curve
        point since Go 1.5.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      462ddce5
  5. Apr 02, 2020
  6. Apr 01, 2020
  7. Mar 31, 2020
    • Jeff Wentworth's avatar
      README: update private network genesis spec with istanbul (#20841) · f0be1513
      Jeff Wentworth authored
      * add istanbul and muirGlacier to genesis states in README
      
      * remove muirGlacier, relocate istanbul
      f0be1513
    • Gary Rong's avatar
      les: create utilities as common package (#20509) · f78ffc05
      Gary Rong authored
      * les: move execqueue into utilities package
      
      execqueue is a util for executing queued functions
      in a serial order which is used by both les server
      and les client. Move it to common package.
      
      * les: move randselect to utilities package
      
      weighted_random_selector is a helpful tool for randomly select
      items maintained in a set but based on the item weight.
      
      It's used anywhere is LES package, mainly by les client but will
      be used in les server with very high chance. So move it into a
      common package as the second step for les separation.
      
      * les: rename to utils
      f78ffc05
    • Martin Holst Swende's avatar
      metrics: improve TestTimerFunc (#20818) · 32d31c31
      Martin Holst Swende authored
      The test failed due to what appears to be fluctuations in time.Sleep, which is
      not the actual method under test. This change modifies it so we compare the
      metered Max to the actual time instead of the desired time.
      32d31c31
Loading