good morning!!!!

Skip to content
Snippets Groups Projects
  1. Jan 22, 2021
  2. Jan 21, 2021
  3. Jan 20, 2021
  4. Jan 19, 2021
    • Gary Rong's avatar
      eth, les: add new config field SyncFromCheckpoint (#22123) · 45cb1a58
      Gary Rong authored
      This PR introduces a new config field SyncFromCheckpoint for light client.
      
      In some special scenarios, it's required to start synchronization from some
      arbitrary checkpoint or even from the scratch. So this PR offers this
      flexibility to users so that the synchronization start point can be configured.
      
      There are two relevant configs: SyncFromCheckpoint and Checkpoint.
      
      - If the SyncFromCheckpoint is true, the light client will try to sync from the
        specified checkpoint.
      
      - If the Checkpoint is not configured, then the light client will sync from the
        scratch(from the latest header if the database is not empty)
      
      Additional notes: these two configs are not visible in the CLI flags but only
      accessable in the config file.
      
      Example Usage:
      
      [Eth]
      SyncFromCheckpoint = true
      
      [Eth.Checkpoint]
      SectionIndex = 100
      SectionHead = "0xabc"
      CHTRoot = "0xabc"
      BloomRoot = "0xabc"
      
      PS. Historical checkpoint can be retrieved from the synced full node or light
      client via les_getCheckpoint API.
      Unverified
      45cb1a58
    • Alex Mazalov's avatar
      cmd/geth: graceful shutdown if disk is full (#22103) · 24c1e305
      Alex Mazalov authored
      
      Adding warnings of free disk space left and graceful shutdown when there is not enough space left.
      This also adds a flag datadir.minfreedisk which can be used to set the trigger for low disk space, and setting it to zero disables the check. 
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      Unverified
      24c1e305
  5. Jan 18, 2021
  6. Jan 16, 2021
    • Gary Rong's avatar
      les: remove useless protocol defines (#22115) · 034ecc32
      Gary Rong authored
      This PR has two changes in the les protocol:
      
      - the auxRoot is not supported. See ethereum/devp2p#171 for more information
      - the empty response will be returned in GetHelperTrieProofsMsg request if the merkle
         proving is failed. note, for backward compatibility, the empty merkle proof as well as
         the request auxiliary data will still be returned in  les2/3 protocol no matter the proving
         is successful or not. the proving failure can happen e.g. request the proving for a
         non-included entry in helper trie (unstable header).
      Unverified
      034ecc32
    • Dan DeGreef's avatar
  7. Jan 15, 2021
  8. Jan 14, 2021
  9. Jan 13, 2021
  10. Jan 12, 2021
  11. Jan 11, 2021
  12. Jan 10, 2021
    • Gary Rong's avatar
      core: persist bad blocks (#21827) · 5a1b3843
      Gary Rong authored
      * core: persist bad blocks
      
      * core, eth, internal: address comments
      
      * core/rawdb: add badblocks to inspector
      
      * core, eth: update
      
      * internal: revert
      
      * core, eth: only save 10 bad blocks
      
      * core/rawdb: address comments
      
      * core/rawdb: fix
      
      * core: address comments
      Unverified
      5a1b3843
  13. Jan 09, 2021
  14. Jan 08, 2021
    • Marius van der Wijden's avatar
      ethclient: better test suite for ethclient package (#22127) · 889f5645
      Marius van der Wijden authored
      This commit extends the ethclient test suite and increases code coverage of the ethclient
      package from ~15% to >55%. These tests act as early smoke tests to signal issues in the
      RPC-interface. E.g. if a functionality like eth_chainId or eth_call breaks, the test
      will break.
      Unverified
      889f5645
    • Martin Holst Swende's avatar
      cmd/faucet: fix nonce-gap problem (#22145) · 6b88ab75
      Martin Holst Swende authored
      * cmd/faucet: avoid encoding for each client
      
      * cmd/faucet: fix flaw in clearing of txs, avoid sending more than necessary
      
      * cmd/faucet: fix flaw in tx cropping
      
      * cmd/faucet: revert change to not always send tx info
      
      * cmd/faucet: review fixes
      
      * cmd/faucet: revert #22018, fix order in UI
      
      * cmd/faucet: fix lock error
      
      * cmd/faucet: revert json changes
      
      * squashme
      Unverified
      6b88ab75
  15. Jan 07, 2021
Loading