|
@ -77,13 +77,6 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy |
|
|
} |
|
|
} |
|
|
proxyAppConn.SetResponseCallback(proxyCb) |
|
|
proxyAppConn.SetResponseCallback(proxyCb) |
|
|
|
|
|
|
|
|
// Begin block
|
|
|
|
|
|
err := proxyAppConn.BeginBlockSync(uint64(block.Height)) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
log.Warn("Error in proxyAppConn.BeginBlock", "error", err) |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Run txs of block
|
|
|
// Run txs of block
|
|
|
for _, tx := range block.Txs { |
|
|
for _, tx := range block.Txs { |
|
|
proxyAppConn.AppendTxAsync(tx) |
|
|
proxyAppConn.AppendTxAsync(tx) |
|
@ -93,7 +86,7 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// End block
|
|
|
// End block
|
|
|
changedValidators, err := proxyAppConn.EndBlockSync() |
|
|
|
|
|
|
|
|
changedValidators, err := proxyAppConn.EndBlockSync(uint64(block.Height)) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Warn("Error in proxyAppConn.EndBlock", "error", err) |
|
|
log.Warn("Error in proxyAppConn.EndBlock", "error", err) |
|
|
return err |
|
|
return err |
|
|