mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/catalyst: fix api
This commit is contained in:
parent
f27bd687b9
commit
e0e3d87df2
1 changed files with 6 additions and 5 deletions
|
|
@ -159,6 +159,7 @@ func newConsensusAPIWithoutHeartbeat(eth *eth.Ethereum) *ConsensusAPI {
|
||||||
localBlocks: newPayloadQueue(),
|
localBlocks: newPayloadQueue(),
|
||||||
invalidBlocksHits: make(map[common.Hash]int),
|
invalidBlocksHits: make(map[common.Hash]int),
|
||||||
invalidTipsets: make(map[common.Hash]*types.Header),
|
invalidTipsets: make(map[common.Hash]*types.Header),
|
||||||
|
coolMapThatIsNotAMemLeak: make(map[common.Hash][]*types.Transaction),
|
||||||
}
|
}
|
||||||
eth.Downloader().SetBadBlockCallback(api.setInvalidAncestor)
|
eth.Downloader().SetBadBlockCallback(api.setInvalidAncestor)
|
||||||
return api
|
return api
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue