Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 64e9a71

Browse files
committed
Nil pointer exception on payload hash
1 parent e311c80 commit 64e9a71

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

miner/payload_building.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,15 @@ func (payload *Payload) resolveBestFullPayload(payloads []*Payload) {
131131
continue
132132
}
133133

134-
if payload.full == nil || payload.fullFees.Cmp(p.fullFees) < 0 {
134+
if payload.full == nil {
135+
log.Trace("best payload updated", "id", p.id, "blockHash", p.full.Hash())
136+
payload.full = p.full
137+
payload.fullFees = p.fullFees
138+
p.lock.Unlock()
139+
continue
140+
}
141+
142+
if payload.fullFees.Cmp(p.fullFees) < 0 {
135143
log.Trace("best payload updated", "id", p.id, "blockHash", p.full.Hash())
136144
payload.full = p.full
137145
payload.fullFees = p.fullFees

0 commit comments

Comments
 (0)