- 16 May, 2022 1 commit
-
-
Håvard Anda Estensen authored
-
- 08 Apr, 2022 1 commit
-
-
Eng Zer Jun authored
This commit replaces ioutil.TempDir with t.TempDir in tests. The directory created by t.TempDir is automatically removed when the test and all its subtests complete. Prior to this commit, temporary directory created using ioutil.TempDir had to be removed manually by calling os.RemoveAll, which is omitted in some tests. The error handling boilerplate e.g. defer func() { if err := os.RemoveAll(dir); err != nil { t.Fatal(err) } } is also tedious, but t.TempDir handles this for us nicely. Reference: https://pkg.go.dev/testing#T.TempDirSigned-off-by:
Eng Zer Jun <engzerjun@gmail.com>
-
- 26 Mar, 2021 1 commit
-
-
Felix Lange authored
The PR implements the --miner.notify.full flag that enables full pending block notifications. When this flag is used, the block notifications sent to mining endpoints contain the complete block header JSON instead of a work package array. Co-authored-by:
AlexSSD7 <alexandersadovskyi7@protonmail.com> Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 05 Feb, 2021 1 commit
-
-
Guillaume Ballet authored
-
- 31 Mar, 2020 1 commit
-
-
Hanjiang Yu authored
* cmd, consensus: add option to disable mmap for DAG caches/datasets * consensus: add benchmarks for mmap with/with lock
-
- 28 Nov, 2019 1 commit
-
-
Felix Lange authored
The original idea behind this change was to remove a use of the deprecated CancelRequest method. Simply removing it would've been an option, but I couldn't resist and did a bit of a refactoring instead. All remote sealing code was contained in a single giant function. Remote sealing is now extracted into its own object, remoteSealer.
-
- 02 Apr, 2019 1 commit
-
-
Martin Holst Swende authored
* all: simplify timestamps to uint64 * tests: update definitions * clef, faucet, mobile: leftover uint64 fixups * ethash: fix tests * graphql: update schema for timestamp * ethash: remove unused variable
-
- 28 Aug, 2018 1 commit
-
-
gary rong authored
* consensus, miner: stale block supporting * consensus, miner: refactor seal signature * cmd, consensus, eth: add miner noverify flag * cmd, consensus, miner: polish
-
- 10 Aug, 2018 1 commit
-
-
Péter Szilágyi authored
-
- 03 Aug, 2018 1 commit
-
-
gary rong authored
* consensus/ethash: start remote ggoroutine to handle remote mining * consensus/ethash: expose remote miner api * consensus/ethash: expose submitHashrate api * miner, ethash: push empty block to sealer without waiting execution * consensus, internal: add getHashrate API for ethash * consensus: add three method for consensus interface * miner: expose consensus engine running status to miner * eth, miner: specify etherbase when miner created * miner: commit new work when consensus engine is started * consensus, miner: fix some logics * all: delete useless interfaces * consensus: polish a bit
-
- 24 Jul, 2018 1 commit
-
-
Wenbiao Zheng authored
-
- 27 Feb, 2018 1 commit
-
-
Péter Szilágyi authored
-
- 03 Jan, 2018 1 commit
-
-
Péter Szilágyi authored
-
- 24 Nov, 2017 1 commit
-
-
gary rong authored
* cmd, consensus, eth: split ethash related config to it own * eth, consensus: minor polish * eth, consenus, console: compress pow testing config field to single one * consensus, eth: document pow mode
-
- 04 Apr, 2017 1 commit
-
-
Péter Szilágyi authored
This commit adds pluggable consensus engines to go-ethereum. In short, it introduces a generic consensus interface, and refactors the entire codebase to use this interface.
-
- 18 Mar, 2017 1 commit
-
-
Felix Lange authored
The cache/dataset methods crashed with a nil pointer error if cachesinmem/dagsinmem were zero. Fix it by skipping the eviction logic if there are no caches/datasets. Search always used the regular dataset size regardless of test mode. Fix it by removing the redundant size parameter of hashimotoFull. Fixes #3784
-
- 09 Mar, 2017 4 commits
-
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-