mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 05:11:21 +00:00
NewBatch takes size, batch.Add doesn't use append
This commit is contained in:
@ -246,7 +246,7 @@ func (s *State) ApplyBlock(eventCache types.Fireable, proxyAppConn proxy.AppConn
|
||||
return fmt.Errorf("Commit failed for application: %v", err)
|
||||
}
|
||||
|
||||
batch := txindex.NewBatch()
|
||||
batch := txindex.NewBatch(block.NumTxs)
|
||||
for _, r := range txResults {
|
||||
batch.Add(*r)
|
||||
}
|
||||
|
Reference in New Issue
Block a user