1. 16 May, 2022 1 commit
  2. 08 Apr, 2022 1 commit
    • Eng Zer Jun's avatar
      all: use T.TempDir to create temporary test directories (#24633) · 8d066f1f
      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: 's avatarEng Zer Jun <engzerjun@gmail.com>
      8d066f1f
  3. 26 Mar, 2021 1 commit
  4. 05 Feb, 2021 1 commit
  5. 31 Mar, 2020 1 commit
  6. 28 Nov, 2019 1 commit
    • Felix Lange's avatar
      consensus/ethash: refactor remote sealer (#20335) · a91b704b
      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.
      a91b704b
  7. 02 Apr, 2019 1 commit
    • Martin Holst Swende's avatar
      all: simplify timestamps to uint64 (#19372) · 0b4fe8d1
      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
      0b4fe8d1
  8. 28 Aug, 2018 1 commit
  9. 10 Aug, 2018 1 commit
  10. 03 Aug, 2018 1 commit
    • gary rong's avatar
      consensus/ethash: move remote agent logic to ethash internal (#15853) · 51db5975
      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
      51db5975
  11. 24 Jul, 2018 1 commit
  12. 27 Feb, 2018 1 commit
  13. 03 Jan, 2018 1 commit
  14. 24 Nov, 2017 1 commit
  15. 04 Apr, 2017 1 commit
  16. 18 Mar, 2017 1 commit
    • Felix Lange's avatar
      pow: fix Search with ethash test mode · 24dd0355
      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
      24dd0355
  17. 09 Mar, 2017 4 commits