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.
1 parent fe47417 commit 94130acCopy full SHA for 94130ac
chain/block.go
@@ -300,6 +300,9 @@ func (b *StatelessBlock) initializeBuilt(
300
txID := b.Txs[i].ID()
301
resultOutput := b.results[i].Output
302
// [txID + resultOutput]
303
+ // txID is a fixed length array, hence [append] will always allocate new memory and copy
304
+ // so slice with new address will be returned and no reflect on txID, then later
305
+ // we consume those bytes
306
merkleItems = append(merkleItems, append(txID[:], resultOutput...))
307
}
308
0 commit comments