1. 13 11月, 2017 1 次提交
  2. 04 10月, 2017 1 次提交
  3. 11 9月, 2017 1 次提交
  4. 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
  5. 06 9月, 2017 1 次提交
  6. 05 9月, 2017 1 次提交
  7. 18 8月, 2017 1 次提交
  8. 31 7月, 2017 1 次提交
  9. 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
  10. 29 6月, 2017 1 次提交
  11. 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
  12. 25 5月, 2017 2 次提交
  13. 08 5月, 2017 1 次提交
  14. 22 4月, 2017 1 次提交
  15. 12 4月, 2017 1 次提交
  16. 10 4月, 2017 1 次提交
  17. 06 4月, 2017 1 次提交
  18. 05 4月, 2017 1 次提交
  19. 23 3月, 2017 1 次提交
  20. 22 3月, 2017 1 次提交
  21. 09 3月, 2017 1 次提交
  22. 03 3月, 2017 2 次提交
  23. 28 2月, 2017 2 次提交
  24. 23 2月, 2017 2 次提交
  25. 18 2月, 2017 1 次提交
  26. 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
  27. 26 1月, 2017 1 次提交
  28. 17 1月, 2017 2 次提交
  29. 11 1月, 2017 1 次提交
  30. 09 1月, 2017 1 次提交
  31. 07 1月, 2017 2 次提交
  32. 06 1月, 2017 2 次提交
    • F
      all: gofmt -w -s · 35a7dcb1
      Felix Lange 提交于
      35a7dcb1
    • F
      core/vm: move Log to core/types · 77310619
      Felix Lange 提交于
      This significantly reduces the dependency closure of ethclient, which no
      longer depends on core/vm as of this change.
      
      All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too,
      the constructor simply returned a literal.
      77310619
  33. 13 12月, 2016 1 次提交