add callback

This commit is contained in:
Callum Waters
2022-09-22 10:35:19 +02:00
parent 61a4e70365
commit dc0b8923cc
5 changed files with 10 additions and 14 deletions
+1 -3
View File
@@ -295,8 +295,6 @@ func (blockExec *BlockExecutor) Commit(
blockExec.logger.Info(
"committed state",
"height", block.Height,
"num_txs", len(block.Txs),
"agreed_data", fmt.Sprintf("%X", abciResponse.AgreedAppData),
)
// Update mempool.
@@ -344,7 +342,7 @@ func execBlockOnProxyApp(
return nil, fmt.Errorf("expected tx results length to match size of transactions in block. Expected %d, got %d", len(block.Data.Txs), len(resp.TxResults))
}
logger.Info("executed block", "height", block.Height, "agreed_data", resp.AgreedAppData)
logger.Info("executed block", "height", block.Height, "agreed__app_data", resp.AgreedAppData)
return resp, nil
}
-1
View File
@@ -467,7 +467,6 @@ func (store dbStore) SaveFinalizeBlockResponse(height int64, resp *abci.Response
// If the flag is false then we save the ABCIResponse. This can be used for the /BlockResults
// query or to reindex an event using the command line.
if !store.DiscardFinalizeBlockResponses {
fmt.Printf("saving response at height %d\n", height)
bz, err := resp.Marshal()
if err != nil {
return err