mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
chore: add todo
This commit is contained in:
parent
fe8fcb2ca6
commit
7324c9b6ed
1 changed files with 3 additions and 2 deletions
|
|
@ -733,8 +733,9 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
|
||||||
if res, stale, err := q.resultCache.GetDeliverySlot(header.Number.Uint64()); err == nil && !stale {
|
if res, stale, err := q.resultCache.GetDeliverySlot(header.Number.Uint64()); err == nil && !stale {
|
||||||
resume := reconstruct(accepted, res)
|
resume := reconstruct(accepted, res)
|
||||||
if resume >= 0 {
|
if resume >= 0 {
|
||||||
q.receiptTaskPool[header.Hash()] = header
|
// TODO: add receipt index in TaskPool
|
||||||
q.receiptTaskQueue.Push(header, -int64(header.Number.Uint64()))
|
taskPool[header.Hash()] = header
|
||||||
|
taskQueue.Push(header, -int64(header.Number.Uint64()))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// else: between here and above, some other peer filled this result,
|
// else: between here and above, some other peer filled this result,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue