OSDN Git Service

reduce the batch tx number (#557)
[bytom/vapor.git] / toolbar / federation / synchron / sidechain_keeper.go
index 8d00c78..707fdfc 100644 (file)
@@ -275,7 +275,7 @@ func (s *sidechainKeeper) syncBlock() (bool, error) {
                return false, err
        }
 
                return false, err
        }
 
-       if netInfo.IrreversibleBlock <= chain.BlockHeight {
+       if netInfo.IrreversibleBlock <= chain.BlockHeight+s.cfg.Confirmations {
                return false, nil
        }
 
                return false, nil
        }