mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
fix block size caculation
This commit is contained in:
@@ -239,7 +239,7 @@ func (bcR *Reactor) Receive(e p2p.Envelope) {
|
||||
bcR.Logger.Error("Block content is invalid", "err", err)
|
||||
return
|
||||
}
|
||||
bcR.pool.AddBlock(e.Src.ID(), bi, 0) // TODO: fix block size calculation
|
||||
bcR.pool.AddBlock(e.Src.ID(), bi, msg.Block.Size())
|
||||
case *bcproto.StatusRequest:
|
||||
// Send peer our state.
|
||||
wm, err := wrapMsg(&bcproto.StatusResponse{
|
||||
|
||||
Reference in New Issue
Block a user