mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-11 22:31:09 +00:00
ToABCI does not preallocate
This commit is contained in:
@@ -684,7 +684,7 @@ func (evl EvidenceList) Has(evidence Evidence) bool {
|
||||
// ToABCI converts the evidence list to a slice of the ABCI protobuf messages
|
||||
// for use when communicating the evidence to an application.
|
||||
func (evl EvidenceList) ToABCI() []abci.Evidence {
|
||||
el := make([]abci.Evidence, 0)
|
||||
var el []abci.Evidence
|
||||
for _, e := range evl {
|
||||
el = append(el, e.ABCI()...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user