gary rong
d6254f827b
all: protect self-mined block during reorg ( #17656 )
6 years ago
gary rong
0b477712a1
consensus/clique: hide no transaction error ( #17614 )
6 years ago
gary rong
5d1d1a808d
consensus, ethdb, metrics: implement forced-meter ( #17667 )
6 years ago
Martin Holst Swende
7efb12d29b
ethash: documentation + cleanup
6 years ago
Martin Holst Swende
3df7df0386
ethash: less copy-paste for EIP 1234
6 years ago
EOS Classic
0732617b65
consensus: implement Constantinople EIP 1234
6 years ago
Péter Szilágyi
4bb25042eb
consensus/clique, core: chain maker clique + error tests
6 years ago
Péter Szilágyi
bcfb7f58b9
consensus/clique: only trust snapshot for genesis or les checkpoint
6 years ago
Anton Evangelatov
cc2b39bbd1
consensus/ethash: increase timeout in test ( #17526 )
...
This is an attempt to fix the flaky consensus/ethash tests under macOS.
6 years ago
ult-bobonovski
992b77992f
consensus: fix comment typo ( #17562 )
6 years ago
gary rong
c1c003e4ff
consensus, miner: stale block mining support ( #17506 )
...
* consensus, miner: stale block supporting
* consensus, miner: refactor seal signature
* cmd, consensus, eth: add miner noverify flag
* cmd, consensus, miner: polish
6 years ago
Mymskmkt
c64d72bea2
consensus/ethash: remove unnecessary type declaration ( #17529 )
6 years ago
gary rong
40a71f28cf
miner: fix state commit, track old work packages too ( #17490 )
...
* miner: commit state which is relative with sealing result
* consensus, core, miner, mobile: introduce sealHash interface
* miner: evict pending task with threshold
* miner: go fmt
6 years ago
Péter Szilágyi
9f036647e4
consensus/clique, light: light client snapshots on Rinkeby
6 years ago
Péter Szilágyi
251c868008
consensus/ethash: reduce notify test aggressiveness
6 years ago
Péter Szilágyi
d8541a9f99
consensus/ethash: use DAGs for remote mining, generate async
6 years ago
Péter Szilágyi
f0998415ba
cmd, consensus/ethash, eth: miner push notifications
6 years ago
gary rong
51db5975cc
consensus/ethash: move remote agent logic to ethash internal ( #15853 )
...
* 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
6 years ago
hadv
49f63deb24
consensus/clique: replace bubble sort by golang stable sort
6 years ago
Wenbiao Zheng
f6206efe5b
consensus: move test use only var/func to test( #17004 )
6 years ago
Ralph Caraveo III
5d30be412b
all: switch out defunct set library to different one ( #16873 )
...
* keystore, ethash, eth, miner, rpc, whisperv6: tech debt with now defunct set.
* whisperv5: swap out gopkg.in/fatih/set.v0 with supported set
6 years ago
Kwuaint
facf1bc9d6
consensus/ethash: fix the algorithm of fakeBlockNumber in comments ( #17166 )
...
correct the algorithm in the comments for fakeBlockNumber, from "min" to "max".
6 years ago
LeoLiao
0b20b1a050
consensus/clique: fixed documentation copy-paste issue ( #17137 )
6 years ago
Zak Cole
eb794af833
consensus/ethash: fixed documentation typo ( #17121 )
...
"proot-of-work" to "proof-of-work"
6 years ago
Felix Lange
3f33a7c8ce
consensus/ethash: reduce keccak hash allocations ( #16857 )
...
Use Read instead of Sum to avoid internal allocations and
copying the state.
name old time/op new time/op delta
CacheGeneration-8 764ms ± 1% 579ms ± 1% -24.22% (p=0.000 n=20+17)
SmallDatasetGeneration-8 75.2ms ±12% 60.6ms ±10% -19.37% (p=0.000 n=20+20)
HashimotoLight-8 1.58ms ±11% 1.55ms ± 8% ~ (p=0.322 n=20+19)
HashimotoFullSmall-8 4.90µs ± 1% 4.88µs ± 1% -0.31% (p=0.013 n=19+18)
7 years ago
hadv
f2fdb75dd9
core, consensus: fix some typos in comment code and output log
7 years ago
gary rong
7beccb29be
all: get rid of error when creating memory database ( #16716 )
...
* all: get rid of error when create mdb
* core: clean up variables definition
* all: inline mdb definition
7 years ago
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
7 years ago
YH-Zhou
fd3da7c69d
consensus/ethash: fixed typo ( #16665 )
7 years ago
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
7 years ago
Kyuntae Ethan Kim
d429a92f09
consensus/ethash: fixed typo ( #16253 )
7 years ago
Péter Szilágyi
17b0e226d3
travis, build, consensus: drop support for Go 1.7
7 years ago
Anton Evangelatov
ae9f97221a
metrics: pull library and introduce ResettingTimer and InfluxDB reporter ( #15910 )
...
* 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
7 years ago
Péter Szilágyi
55599ee95d
core, trie: intermediate mempool between trie and database ( #15857 )
...
This commit reduces database I/O by not writing every state trie to disk.
7 years ago
Felix Lange
924065e19d
consensus/ethash: improve cache/dataset handling ( #15864 )
...
* consensus/ethash: add maxEpoch constant
* consensus/ethash: improve cache/dataset handling
There are two fixes in this commit:
Unmap the memory through a finalizer like the libethash wrapper did. The
release logic was incorrect and freed the memory while it was being
used, leading to crashes like in #14495 or #14943 .
Track caches and datasets using simplelru instead of reinventing LRU
logic. This should make it easier to see whether it's correct.
* consensus/ethash: restore 'future item' logic in lru
* consensus/ethash: use mmap even in test mode
This makes it possible to shorten the time taken for TestCacheFileEvict.
* consensus/ethash: shuffle func calc*Size comments around
* consensus/ethash: ensure future cache/dataset is in the lru cache
* consensus/ethash: add issue link to the new test
* consensus/ethash: fix vet
* consensus/ethash: fix test
* consensus: tiny issue + nitpick fixes
7 years ago
gary rong
3a5a5599dd
consensus/ethash: fix byzantium difficulty comment typo ( #15842 )
7 years ago
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64
7 years ago
sunxiaojun2014
908faf8cd7
consensus/ethash: fix overdue link ( #15786 )
7 years ago
gary rong
5f8888e116
accounts, consensus, core, eth: make chain maker consensus agnostic ( #15497 )
...
* accounts, consensus, core, eth: make chain maker consensus agnostic
* consensus, core: move CalcDifficulty to Engine interface
* consensus: add docs for calcDifficulty function
* consensus, core: minor comment fixups
7 years ago
Zach
3da1bf8ca1
all: use gometalinter.v2, fix new gosimple issues ( #15650 )
7 years ago
Martin Holst Swende
79d5e5593f
consensus/ethash: relax requirements when determining future-blocks
7 years ago
gary rong
f14047dae5
cmd, consensus, eth: split ethash related config to it own ( #15520 )
...
* 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
7 years ago
Péter Szilágyi
1e0c336d29
cmd/puppeth: etherchain light block explorer for PoW nets
7 years ago
ferhat elmas
86f6568f66
build: enable unconvert linter ( #15456 )
...
* build: enable unconvert linter
- fixes #15453
- update code base for failing cases
* cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
7 years ago
Péter Szilágyi
6d6a5a9337
cmd, consensus, core, miner: instatx clique for --dev ( #15323 )
...
* cmd, consensus, core, miner: instatx clique for --dev
* cmd, consensus, clique: support configurable --dev block times
* cmd, core: allow --dev to use persistent storage too
7 years ago
Ernesto del Toro
2e83c82f80
ethash: fix typo
7 years ago
Péter Szilágyi
d3beff7e20
consensus/clique: add fork hash enforcement ( #15236 )
7 years ago
Péter Szilágyi
5bbd7fb390
consensus, core, params: rebrand Metro to Byzantium
7 years ago
Péter Szilágyi
b872961ec8
consensus, core, tests: implement Metropolis EIP 649
7 years ago
Egon Elbre
80de4dc72c
consensus: revert time.Until change
7 years ago