forked from TrueCloudLab/neoneo-go
core: reuse the transfer log buffer
Make it a bit more efficient.
This commit is contained in:
parent
125e4231b0
commit
f3278ea5b2
1 changed files with 2 additions and 1 deletions
|
@ -1393,7 +1393,8 @@ func appendTokenTransfer(cache dao.DAO, transCache map[util.Uint160]transferData
|
|||
return err
|
||||
}
|
||||
*nextBatch++
|
||||
*log = state.TokenTransferLog{}
|
||||
// Put makes a copy of it anyway.
|
||||
log.Raw = log.Raw[:0]
|
||||
}
|
||||
transCache[addr] = transferData
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue