good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 19, 2021
  2. Apr 18, 2021
  3. Apr 16, 2021
  4. Apr 15, 2021
  5. Apr 14, 2021
    • Péter Szilágyi's avatar
      Merge pull request #22666 from karalabe/remove-stale-datatype · d8ff53df
      Péter Szilágyi authored
      core/types: drop some relice data types
      d8ff53df
    • Péter Szilágyi's avatar
      d5e57948
    • Gary Rong's avatar
      core, eth: faster snapshot generation (#22504) · 7088f1e8
      Gary Rong authored
      
      * eth/protocols: persist received state segments
      
      * core: initial implementation
      
      * core/state/snapshot: add tests
      
      * core, eth: updates
      
      * eth/protocols/snapshot: count flat state size
      
      * core/state: add metrics
      
      * core/state/snapshot: skip unnecessary deletion
      
      * core/state/snapshot: rename
      
      * core/state/snapshot: use the global batch
      
      * core/state/snapshot: add logs and fix wiping
      
      * core/state/snapshot: fix
      
      * core/state/snapshot: save generation progress even if the batch is empty
      
      * core/state/snapshot: fixes
      
      * core/state/snapshot: fix initial account range length
      
      * core/state/snapshot: fix initial account range
      
      * eth/protocols/snap: store flat states during the healing
      
      * eth/protocols/snap: print logs
      
      * core/state/snapshot: refactor (#4)
      
      * core/state/snapshot: refactor
      
      * core/state/snapshot: tiny fix and polish
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      
      * core, eth: fixes
      
      * core, eth: fix healing writer
      
      * core, trie, eth: fix paths
      
      * eth/protocols/snap: fix encoding
      
      * eth, core: add debug log
      
      * core/state/generate: release iterator asap (#5)
      
      core/state/snapshot: less copy
      
      core/state/snapshot: revert split loop
      
      core/state/snapshot: handle storage becoming empty, improve test robustness
      
      core/state: test modified codehash
      
      core/state/snapshot: polish
      
      * core/state/snapshot: optimize stats counter
      
      * core, eth: add metric
      
      * core/state/snapshot: update comments
      
      * core/state/snapshot: improve tests
      
      * core/state/snapshot: replace secure trie with standard trie
      
      * core/state/snapshot: wrap return as the struct
      
      * core/state/snapshot: skip wiping correct states
      
      * core/state/snapshot: updates
      
      * core/state/snapshot: fixes
      
      * core/state/snapshot: fix panic due to reference flaw in closure
      
      * core/state/snapshot: fix errors in state generation logic + fix log output
      
      * core/state/snapshot: remove an error case
      
      * core/state/snapshot: fix condition-check for exhausted snap state
      
      * core/state/snapshot: use stackTrie for small tries
      
      * core/state/snapshot: don't resolve small storage tries in vain
      
      * core/state/snapshot: properly clean up storage of deleted accounts
      
      * core/state/snapshot: avoid RLP-encoding in some cases + minor nitpicks
      
      * core/state/snapshot: fix error (+testcase)
      
      * core/state/snapshot: clean up tests a bit
      
      * core/state/snapshot: work in progress on better tests
      
      * core/state/snapshot: polish code
      
      * core/state/snapshot: fix trie iteration abortion trigger
      
      * core/state/snapshot: fixes flaws
      
      * core/state/snapshot: remove panic
      
      * core/state/snapshot: fix abort
      
      * core/state/snapshot: more tests (plus failing testcase)
      
      * core/state/snapshot: more testcases + fix for failing test
      
      * core/state/snapshot: testcase for malformed data
      
      * core/state/snapshot: some test nitpicks
      
      * core/state/snapshot: improvements to logging
      
      * core/state/snapshot: testcase to demo error in abortion
      
      * core/state/snapshot: fix abortion
      
      * cmd/geth: make verify-state report the root
      
      * trie: fix failing test
      
      * core/state/snapshot: add timer metrics
      
      * core/state/snapshot: fix metrics
      
      * core/state/snapshot: udpate tests
      
      * eth/protocols/snap: write snapshot account even if code or state is needed
      
      * core/state/snapshot: fix diskmore check
      
      * core/state/snapshot: review fixes
      
      * core/state/snapshot: improve error message
      
      * cmd/geth: rename 'error' to 'err' in logs
      
      * core/state/snapshot: fix some review concerns
      
      * core/state/snapshot, eth/protocols/snap: clear snapshot marker when starting/resuming snap sync
      
      * core: add error log
      
      * core/state/snapshot: use proper timers for metrics collection
      
      * core/state/snapshot: address some review concerns
      
      * eth/protocols/snap: improved log message
      
      * eth/protocols/snap: fix heal logs to condense infos
      
      * core/state/snapshot: wait for generator termination before restarting
      
      * core/state/snapshot: revert timers to counters to track total time
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      7088f1e8
    • xD AKA Rapper King Of cn background diablo & revelations's avatar
  6. Apr 13, 2021
  7. Apr 09, 2021
  8. Apr 08, 2021
  9. Apr 07, 2021
  10. Apr 06, 2021
  11. Mar 31, 2021
  12. Mar 30, 2021
    • Felix Lange's avatar
      rpc: tighter shutdown synchronization in client subscription (#22597) · 4a37ae51
      Felix Lange authored
      This fixes a rare issue where the client subscription forwarding loop
      would attempt send on the subscription's channel after Unsubscribe has
      returned, leading to a panic if the subscription channel was already
      closed by the user. Example:
      
          sub, _ := client.Subscribe(..., channel, ...)
          sub.Unsubscribe()
          close(channel)
      
      The race occurred because Unsubscribe called quitWithServer to tell the
      forwarding loop to stop sending on sub.channel, but did not wait for the
      loop to actually come down. This is fixed by adding an additional channel
      to track the shutdown, on which Unsubscribe now waits.
      
      Fixes #22322
      4a37ae51
    • Péter Szilágyi's avatar
      core/state/snapshot, ethdb: track deletions more accurately (#22582) · 61ff3e86
      Péter Szilágyi authored
      * core/state/snapshot, ethdb: track deletions more accurately
      
      * core/state/snapshot: don't reset the iterator, leveldb's screwy
      
      * ethdb: don't mess with the insert batches for now
      61ff3e86
    • Marius van der Wijden's avatar
      ethstats: avoid creating subscriptions on background goroutine (#22587) · 3faae5de
      Marius van der Wijden authored
      
      This fixes an issue where the ethstats service could crash if geth was
      started and then immediately stopped due to an internal error. The
      cause of the crash was a nil subscription being returned by the backend,
      because the background goroutine creating them was scheduled after
      the backend had already shut down.
      
      Moving the creation of subscriptions into the Start method, which runs
      synchronously during startup of the node, means the returned subscriptions
      can never be 'nil'.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      3faae5de
Loading