We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b1d869 + 5c4f238 commit 3f5f142Copy full SHA for 3f5f142
server.go
@@ -2582,8 +2582,10 @@ func (s *server) UpdateProofBytesRead(msgTx *wire.MsgTx) error {
2582
s.addAccBytesReceived(uint64(accSize))
2583
2584
} else if s.chain.IsUtreexoViewActive() {
2585
- s.addProofBytesReceived(uint64(msgTx.UData.SerializeSizeCompact(true)))
2586
- s.addAccBytesReceived(uint64(msgTx.UData.SerializeAccSizeCompact()))
+ if msgTx.UData != nil {
+ s.addProofBytesReceived(uint64(msgTx.UData.SerializeSizeCompact(true)))
2587
+ s.addAccBytesReceived(uint64(msgTx.UData.SerializeAccSizeCompact()))
2588
+ }
2589
}
2590
2591
return nil
0 commit comments