comment ToABCI

This commit is contained in:
William Banfield
2022-02-21 17:14:35 -05:00
parent 39e0957b40
commit 80a738300b
2 changed files with 3 additions and 3 deletions

View File

@@ -383,8 +383,6 @@ func execBlockOnProxyApp(
dtxs := make([]*abci.ResponseDeliverTx, len(block.Txs))
abciResponses.DeliverTxs = dtxs
commitInfo := buildLastCommitInfo(block, store, initialHeight)
// Begin block
var err error
pbh := block.Header.ToProto()
@@ -397,7 +395,7 @@ func execBlockOnProxyApp(
abci.RequestBeginBlock{
Hash: block.Hash(),
Header: *pbh,
LastCommitInfo: commitInfo,
LastCommitInfo: buildLastCommitInfo(block, store, initialHeight),
ByzantineValidators: block.Evidence.ToABCI(),
},
)

View File

@@ -681,6 +681,8 @@ func (evl EvidenceList) Has(evidence Evidence) bool {
return false
}
// ToABCI converts the evidence list to a list of the equivalent abci proto type
// for use when communicating the evidence to an application.
func (evl EvidenceList) ToABCI() []abci.Evidence {
el := make([]abci.Evidence, 0)
for _, e := range evl {