Péter Szilágyi
92381ee009
cmd, eth: clean up miner startup API, drop noop config field
6 years ago
gary rong
af85d8e2b3
cmd, eth: apply default miner recommit setting ( #17479 )
6 years ago
gary rong
b2c644ffb5
cmd, eth, miner: make recommit configurable ( #17444 )
...
* cmd, eth, miner: make recommit configurable
* cmd, eth, les, miner: polish a bit
* miner: filter duplicate sealing work
* cmd: remove uncessary conversion
* miner: avoid microptimization in favor of cleaner code
6 years ago
Pierre Neter
76301ca051
eth: upgradedb subcommand was dropped ( #17464 )
6 years ago
Martin Holst Swende
106d196ec4
eth: ensure from<to when tracing chain (credits Chen Nan via bugbounty)
6 years ago
Felföldi Zsolt
2cdf6ee7e0
light: CHT and bloom trie indexers working in light mode ( #16534 )
...
This PR enables the indexers to work in light client mode by
downloading a part of these tries (the Merkle proofs of the last
values of the last known section) in order to be able to add new
values and recalculate subsequent hashes. It also adds CHT data to
NodeInfo.
6 years ago
Péter Szilágyi
f0998415ba
cmd, consensus/ethash, eth: miner push notifications
6 years ago
Péter Szilágyi
11bbc66082
eth, trie: fix tracer GC which accidentally pruned the metaroot
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
gary rong
c4a1d4fecf
eth/filters: fix the block range assignment for log filter ( #17284 )
6 years ago
Oleg Kovalov
d42ce0f2c1
all: simplify switches ( #17267 )
...
* all: simplify switches
* silly mistake
6 years ago
Ian Macalinao
d96ba77113
eth/filters: improve error message for invalid filter topics ( #17234 )
6 years ago
emile
526abe2736
eth/tracers: fix noop tracer ( #17220 )
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
Péter Szilágyi
e1f1d3085c
accounts, eth, les: blockhash based filtering on all code paths
6 years ago
Domino Valdano
96339daf40
eth/filters, ethereum: EIP-234 add blockHash param for eth_getLogs
6 years ago
Péter Szilágyi
d926bf2c7e
trie: cache collapsed tries node, not rlp blobs ( #16876 )
...
The current trie memory database/cache that we do pruning on stores
trie nodes as binary rlp encoded blobs, and also stores the node
relationships/references for GC purposes. However, most of the trie
nodes (everything apart from a value node) is in essence just a
collection of references.
This PR switches out the RLP encoded trie blobs with the
collapsed-but-not-serialized trie nodes. This permits most of the
references to be recovered from within the node data structure,
avoiding the need to track them a second time (expensive memory wise).
6 years ago
Martin Holst Swende
4210dd1500
tracers: fix err in 4byte, add some opcode analysis tools
6 years ago
williambannas
9402f96597
eth: conform better to the golint standards ( #16783 )
...
* eth: made changes to conform better to the golint standards
* eth: fix comment nit
6 years ago
knarfeh
e75d0a6e4c
eth/filters: make filterLogs func more readable ( #16920 )
6 years ago
Wenbiao Zheng
ea89f40f0d
eth/fetcher: fix annotation ( #16969 )
6 years ago
Felföldi Zsolt
049f5b3572
core, eth, les: more efficient hash-based header chain retrieval ( #16946 )
7 years ago
Martin Holst Swende
eac16f9824
core: improve getBadBlocks to return full block rlp ( #16902 )
...
* core: improve getBadBlocks to return full block rlp
* core, eth, ethapi: changes to getBadBlocks formatting
* ethapi: address review concerns
7 years ago
Martin Holst Swende
400332b99d
eth/tracers: fix minor off-by-one error ( #16879 )
...
* tracing: fix minor off-by-one error
* tracers: go generate
7 years ago
Péter Szilágyi
143c4341d8
core, eth, trie: streaming GC for the trie cache ( #16810 )
...
* core, eth, trie: streaming GC for the trie cache
* trie: track memcache statistics
7 years ago
Wenbiao Zheng
38c7eb0f26
trie: rename TrieSync to Sync and improve hexToKeybytes ( #16804 )
...
This removes a golint warning: type name will be used as trie.TrieSync by
other packages, and that stutters; consider calling this Sync.
In hexToKeybytes len(hex) is even and (even+1)/2 == even/2, remove the +1.
7 years ago
kiel barry
84f8c0cc1f
common: improve documentation comments ( #16701 )
...
This commit adds many comments and removes unused code.
It also removes the EmptyHash function, which had some uses
but was silly.
7 years ago
Smilenator
40a2c52397
eth/fetcher: reuse variables for hash and number ( #16819 )
7 years ago
Wenbiao Zheng
d6ed2f67a8
eth, node, trie: fix minor typos ( #16802 )
7 years ago
Péter Szilágyi
d9cee2c172
eth: propagate blocks and transactions async
7 years ago
Péter Szilágyi
49719e21bc
core, eth: minor txpool event cleanups
7 years ago
rjl493456442
a2e43d28d0
all: collate new transaction events together
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
gary rong
4e7dc34ff1
eth/filter: check nil pointer when unsubscribe ( #16682 )
...
* eth/filter: check nil pointer when unsubscribe
* eth/filters, accounts, rpc: abort system if subscribe failed
* eth/filter: add crit log before exit
* eth/filter, event: minor fixes
7 years ago
kiel barry
4747aad160
eth: golint fixes to variable names ( #16711 )
7 years ago
Domino Valdano
fedae95015
eth/filters: derive FilterCriteria from ethereum.FilterQuery ( #16629 )
7 years ago
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
7 years ago
kiel barry
5b3af4c3d1
eth: golint updates for this or self warning ( #16632 )
...
* eth/*:golint updates for this or self warning
* eth/*: golint updates for this or self warning, pr updated per feedback
7 years ago
Péter Szilágyi
7a7428a027
core, eth: fix tracer dirty finalization
7 years ago
Domino Valdano
7cf83cee52
eth/downloader: fix for Issue #16539 ( #16546 )
7 years ago
Wuxiang
8f8774cf6d
all: fix various typos ( #16533 )
...
* fix typo
* fix typo
* fix typo
7 years ago
gary rong
de2a7bb764
eth/downloader: wait for all fetcher goroutines to exit before terminating ( #16509 )
7 years ago
Felix Lange
c7ab3e5544
common: delete StringToAddress, StringToHash ( #16436 )
...
* common: delete StringToAddress, StringToHash
These functions are confusing because they don't parse hex, but use the
bytes of the string. This change removes them, replacing all uses of
StringToAddress(s) by BytesToAddress([]byte(s)).
* eth/filters: remove incorrect use of common.BytesToAddress
7 years ago
gary rong
1100e8ba63
eth/downloader: flush state sync data before exit ( #16280 )
7 years ago
Yusup
7aad81f881
eth: fix typos ( #16414 )
7 years ago
gary rong
77da203547
eth: update higest block we know during the sync if a higher was found ( #16283 )
...
* eth: update higest block we know during the sync if a higher was found
* eth: avoid useless sync in fast sync
7 years ago
Kyuntae Ethan Kim
f6bef558aa
eth: fixed typo ( #16274 )
7 years ago
Péter Szilágyi
ca64a122d3
eth/downloader: save and load trie sync progress ( #16224 )
7 years ago
Andrey Petrov
2e9c8fd4fb
eth, les: allow exceeding maxPeers for trusted peers ( #16189 )
...
Fixes #3326 , #14472
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