good morning!!!!

Skip to content
Snippets Groups Projects
  1. Feb 03, 2020
    • Evgeny Danilenko's avatar
      Refactor mining. Remove a few mining goroutines (#338) · 17a4a566
      Evgeny Danilenko authored
      
      * add context
      
      * extract chain events
      
      * run commit in goroutines
      
      * mine only on canonical
      
      * typo
      
      * linters
      
      * fmt
      
      * mark unused methods
      
      * restore stress test
      
      * test single miner
      
      * remove unsafe Trie storage
      
      * remove locks from miner
      
      * restore interrupt
      
      * remove result goroutine
      
      * remove unconfirmedBlocks
      
      * cherry-pick 04a1d475ff1a36ad8f92fec80385df18c52bdc1f
      
      * extract uncles
      
      * one miner succeeded
      
      * restore context cancel
      
      * cleanup
      
      * skip an unstable test
      
      * remove pending state
      
      * use context instead of interrupt func
      
      * calculate sealHash only once
      
      * comment out unstable test
      
      * after merge
      
      * fix after merge
      
      Co-authored-by: default avatarledgerwatch <akhounov@gmail.com>
      17a4a566
  2. Feb 01, 2020
  3. Jan 31, 2020
    • Alex Sharov's avatar
      Intermediate hash phase 2 (#341) · ff23980d
      Alex Sharov authored
      * add env INTERMEDIATE_TRIE_CACHE
      * try to use assert.New() pattern
      * Fix "maligned" linter warnings to reduce space consumption of structs:
      
      core/types/accounts/account.go:18:14: struct of size 136 bytes could be of size 128 bytes (maligned)
      type Account struct {
      --
      trie/node.go:44:10: struct of size 80 bytes could be of size 72 bytes (maligned)
      	duoNode struct {
      --
      trie/resolve_set.go:28:17: struct of size 56 bytes could be of size 48 bytes (maligned)
      type ResolveSet struct {
      --
      trie/resolver.go:34:15: struct of size 88 bytes could be of size 72 bytes (maligned)
      type Resolver struct {
      --
      trie/visual.go:32:17: struct of size 104 bytes could be of size 96 bytes (maligned)
      type VisualOpts struct {
      ff23980d
    • Alex Sharov's avatar
      Intermediate trie hashes phase 1 (#334) · 0dd4386a
      Alex Sharov authored
      * add intermediate trie hashes bucket
      * update docs
      * use version of CompressNibbles with buf pool (less GC) but without io.ByteWriter (slow)
      0dd4386a
  4. Jan 30, 2020
Loading