mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +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