1. 23 2月, 2018 2 次提交
  2. 13 2月, 2018 1 次提交
    • F
      core: soften up state memory force-commit log messages (#16080) · b007412d
      Felix Lange 提交于
      Talk about "state" instead of "trie timing", "trie memory" and remove
      the overzealous warning when the limit is just reached. Since the time
      limit is always reached on slow machines, move the message to info level
      so users don't freak out about internal details.
      b007412d
  3. 12 2月, 2018 1 次提交
  4. 06 2月, 2018 1 次提交
  5. 31 1月, 2018 2 次提交
  6. 22 1月, 2018 1 次提交
  7. 03 1月, 2018 1 次提交
  8. 02 1月, 2018 1 次提交
  9. 13 11月, 2017 1 次提交
  10. 04 10月, 2017 1 次提交
  11. 11 9月, 2017 1 次提交
  12. 10 9月, 2017 1 次提交
    • F
      core, eth/downloader: commit block data using batches (#15115) · 10181b57
      Felix Lange 提交于
      * ethdb: add Putter interface and Has method
      
      * ethdb: improve docs and add IdealBatchSize
      
      * ethdb: remove memory batch lock
      
      Batches are not safe for concurrent use.
      
      * core: use ethdb.Putter for Write* functions
      
      This covers the easy cases.
      
      * core/state: simplify StateSync
      
      * trie: optimize local node check
      
      * ethdb: add ValueSize to Batch
      
      * core: optimize HasHeader check
      
      This avoids one random database read get the block number. For many uses
      of HasHeader, the expectation is that it's actually there. Using Has
      avoids a load + decode of the value.
      
      * core: write fast sync block data in batches
      
      Collect writes into batches up to the ideal size instead of issuing many
      small, concurrent writes.
      
      * eth/downloader: commit larger state batches
      
      Collect nodes into a batch up to the ideal size instead of committing
      whenever a node is received.
      
      * core: optimize HasBlock check
      
      This avoids a random database read to get the number.
      
      * core: use numberCache in HasHeader
      
      numberCache has higher capacity, increasing the odds of finding the
      header without a database lookup.
      
      * core: write imported block data using a batch
      
      Restore batch writes of state and add blocks, tx entries, receipts to
      the same batch. The change also simplifies the miner.
      
      This commit also removes posting of logs when a forked block is imported.
      
      * core: fix DB write error handling
      
      * ethdb: use RLock for Has
      
      * core: fix HasBlock comment
      10181b57
  13. 06 9月, 2017 1 次提交
  14. 05 9月, 2017 1 次提交
  15. 18 8月, 2017 1 次提交
  16. 31 7月, 2017 1 次提交
  17. 15 7月, 2017 1 次提交
    • P
      core: remove redundant storage of transactions and receipts (#14801) · 0ff35e17
      Péter Szilágyi 提交于
      * core: remove redundant storage of transactions and receipts
      
      * core, eth, internal: new transaction schema usage polishes
      
      * eth: implement upgrade mechanism for db deduplication
      
      * core, eth: drop old sequential key db upgrader
      
      * eth: close last iterator on successful db upgrage
      
      * core: prefix the lookup entries to make their purpose clearer
      0ff35e17
  18. 29 6月, 2017 1 次提交
  19. 27 6月, 2017 1 次提交
    • F
      core/state: access trie through Database interface, track errors (#14589) · 9e5f03b6
      Felix Lange 提交于
      With this commit, core/state's access to the underlying key/value database is
      mediated through an interface. Database errors are tracked in StateDB and
      returned by CommitTo or the new Error method.
      
      Motivation for this change: We can remove the light client's duplicated copy of
      core/state. The light client now supports node iteration, so tracing and storage
      enumeration can work with the light client (not implemented in this commit).
      9e5f03b6
  20. 25 5月, 2017 2 次提交
  21. 08 5月, 2017 1 次提交
  22. 22 4月, 2017 1 次提交
  23. 12 4月, 2017 1 次提交
  24. 10 4月, 2017 1 次提交
  25. 06 4月, 2017 1 次提交
  26. 05 4月, 2017 1 次提交
  27. 23 3月, 2017 1 次提交
  28. 22 3月, 2017 1 次提交
  29. 09 3月, 2017 1 次提交
  30. 03 3月, 2017 2 次提交
  31. 28 2月, 2017 2 次提交
  32. 23 2月, 2017 2 次提交
  33. 18 2月, 2017 1 次提交
  34. 14 2月, 2017 1 次提交
    • M
      core, eth, internal: Added `debug_getBadBlocks()` method (#3654) · 72dcd3c5
      Martin Holst Swende 提交于
      * core,eth,internal: Added `debug_getBadBlocks()` method
      
      When bad blocks are discovered, these are stored within geth.
      An RPC-endpoint makes them availablewithin the `debug`
      namespace. This feature makes it easier to discover network forks.
      
      ```
      
      * core, api: go format + docs
      
      * core/blockchain: Documentation, fix minor nitpick
      
      * core: fix failing blockchain test
      72dcd3c5