1. 17 4月, 2019 1 次提交
  2. 20 12月, 2018 1 次提交
  3. 28 11月, 2018 1 次提交
  4. 16 11月, 2018 2 次提交
  5. 07 11月, 2018 1 次提交
  6. 23 10月, 2018 1 次提交
  7. 05 10月, 2018 1 次提交
  8. 30 9月, 2018 1 次提交
  9. 14 6月, 2018 1 次提交
  10. 29 5月, 2018 1 次提交
  11. 07 5月, 2018 1 次提交
  12. 23 4月, 2018 1 次提交
  13. 16 4月, 2018 1 次提交
  14. 04 4月, 2018 1 次提交
  15. 09 3月, 2018 1 次提交
  16. 03 3月, 2018 1 次提交
  17. 23 2月, 2018 1 次提交
    • A
      metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910) · ae9f9722
      Anton Evangelatov 提交于
      * go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter.
      
      * vendor: change nonsense/go-metrics to ethersphere/go-metrics
      
      * go-metrics: add tests. move ResettingTimer logic from reporter to type.
      
      * all, metrics: pull in metrics package in go-ethereum
      
      * metrics/test: make sure metrics are enabled for tests
      
      * metrics: apply gosimple rules
      
      * metrics/exp, internal/debug: init expvar endpoint when starting pprof server
      
      * internal/debug: tiny comment formatting fix
      ae9f9722
  18. 11 2月, 2018 1 次提交
  19. 08 2月, 2018 1 次提交
  20. 06 2月, 2018 1 次提交
  21. 05 2月, 2018 1 次提交
  22. 31 1月, 2018 1 次提交
  23. 16 11月, 2017 1 次提交
  24. 11 11月, 2017 1 次提交
    • F
      build: enable unconvert linter (#15456) · 86f6568f
      ferhat elmas 提交于
      * build: enable unconvert linter
      
       - fixes #15453
       - update code base for failing cases
      
      * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
      86f6568f
  25. 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
  26. 06 9月, 2017 1 次提交
  27. 14 8月, 2017 1 次提交
  28. 05 7月, 2017 1 次提交
  29. 03 7月, 2017 1 次提交
  30. 29 6月, 2017 1 次提交
  31. 28 6月, 2017 1 次提交
  32. 22 6月, 2017 1 次提交
    • F
      eth/downloader: separate state sync from queue (#14460) · 0042f13d
      Felix Lange 提交于
      * eth/downloader: separate state sync from queue
      
      Scheduling of state node downloads hogged the downloader queue lock when
      new requests were scheduled. This caused timeouts for other requests.
      With this change, state sync is fully independent of all other downloads
      and doesn't involve the queue at all.
      
      State sync is started and checked on in processContent. This is slightly
      awkward because processContent doesn't have a select loop. Instead, the
      queue is closed by an auxiliary goroutine when state sync fails. We
      tried several alternatives to this but settled on the current approach
      because it's the least amount of change overall.
      
      Handling of the pivot block has changed slightly: the queue previously
      prevented import of pivot block receipts before the state of the pivot
      block was available. In this commit, the receipt will be imported before
      the state. This causes an annoyance where the pivot block is committed
      as fast block head even when state downloads fail. Stay tuned for more
      updates in this area ;)
      
      * eth/downloader: remove cancelTimeout channel
      
      * eth/downloader: retry state requests on timeout
      
      * eth/downloader: improve comment
      
      * eth/downloader: mark peers idle when state sync is done
      
      * eth/downloader: move pivot block splitting to processContent
      
      This change also ensures that pivot block receipts aren't imported
      before the pivot block itself.
      
      * eth/downloader: limit state node retries
      
      * eth/downloader: improve state node error handling and retry check
      
      * eth/downloader: remove maxStateNodeRetries
      
      It fails the sync too much.
      
      * eth/downloader: remove last use of cancelCh in statesync.go
      
      Fixes TestDeliverHeadersHang*Fast and (hopefully)
      the weird cancellation behaviour at the end of fast sync.
      
      * eth/downloader: fix leak in runStateSync
      
      * eth/downloader: don't run processFullSyncContent in LightSync mode
      
      * eth/downloader: improve comments
      
      * eth/downloader: fix vet, megacheck
      
      * eth/downloader: remove unrequested tasks anyway
      
      * eth/downloader, trie: various polishes around duplicate items
      
      This commit explicitly tracks duplicate and unexpected state
      delieveries done against a trie Sync structure, also adding
      there to import info logs.
      
      The commit moves the db batch used to commit trie changes one
      level deeper so its flushed after every node insertion. This
      is needed to avoid a lot of duplicate retrievals caused by
      inconsistencies between Sync internals and database. A better
      approach is to track not-yet-written states in trie.Sync and
      flush on commit, but I'm focuing on correctness first now.
      
      The commit fixes a regression around pivot block fail count.
      The counter previously was reset to 1 if and only if a sync
      cycle progressed (inserted at least 1 entry to the database).
      The current code reset it already if a node was delivered,
      which is not stong enough, because unless it ends up written
      to disk, an attacker can just loop and attack ad infinitum.
      
      The commit also fixes a regression around state deliveries
      and timeouts. The old downloader tracked if a delivery is
      stale (none of the deliveries were requestedt), in which
      case it didn't mark the node idle and did not send further
      requests, since it signals a past timeout. The current code
      did mark it idle even on stale deliveries, which eventually
      caused two requests to be in flight at the same time, making
      the deliveries always stale and mass duplicating retrievals
      between multiple peers.
      
      * eth/downloader: fix state request leak
      
      This commit fixes the hang seen sometimes while doing the state
      sync. The cause of the hang was a rare combination of events:
      request state data from peer, peer drops and reconnects almost
      immediately. This caused a new download task to be assigned to
      the peer, overwriting the old one still waiting for a timeout,
      which in turned leaked the requests out, never to be retried.
      The fix is to ensure that a task assignment moves any pending
      one back into the retry queue.
      
      The commit also fixes a regression with peer dropping due to
      stalls. The current code considered a peer stalling if they
      timed out delivering 1 item. However, the downloader never
      requests only one, the minimum is 2 (attempt to fine tune
      estimated latency/bandwidth). The fix is simply to drop if
      a timeout is detected at 2 items.
      
      Apart from the above bugfixes, the commit contains some code
      polishes I made while debugging the hang.
      
      * core, eth, trie: support batched trie sync db writes
      
      * trie: rename SyncMemCache to syncMemBatch
      0042f13d
  33. 02 5月, 2017 1 次提交
  34. 22 3月, 2017 1 次提交
  35. 02 3月, 2017 1 次提交
    • P
      Logger updates 3 (#3730) · 9184249b
      Péter Szilágyi 提交于
      * accounts, cmd, eth, ethdb: port logs over to new system
      
      * ethdb: drop concept of cache distribution between dbs
      
      * eth: fix some log nitpicks to make them nicer
      9184249b
  36. 28 2月, 2017 1 次提交
  37. 27 2月, 2017 3 次提交