@@ -593,8 +593,9 @@ func (f *TxFetcher) loop() {
593
593
log .Warn ("Announced transaction type mismatch" , "peer" , peer , "tx" , hash , "type" , delivery .metas [i ].kind , "ann" , meta .kind )
594
594
f .dropPeer (peer )
595
595
} else if delivery .metas [i ].size != meta .size {
596
- log .Warn ("Announced transaction size mismatch" , "peer" , peer , "tx" , hash , "size" , delivery .metas [i ].size , "ann" , meta .size )
597
596
if math .Abs (float64 (delivery .metas [i ].size )- float64 (meta .size )) > 8 {
597
+ log .Warn ("Announced transaction size mismatch" , "peer" , peer , "tx" , hash , "size" , delivery .metas [i ].size , "ann" , meta .size )
598
+
598
599
// Normally we should drop a peer considering this is a protocol violation.
599
600
// However, due to the RLP vs consensus format messyness, allow a few bytes
600
601
// wiggle-room where we only warn, but don't drop.
@@ -618,8 +619,9 @@ func (f *TxFetcher) loop() {
618
619
log .Warn ("Announced transaction type mismatch" , "peer" , peer , "tx" , hash , "type" , delivery .metas [i ].kind , "ann" , meta .kind )
619
620
f .dropPeer (peer )
620
621
} else if delivery .metas [i ].size != meta .size {
621
- log .Warn ("Announced transaction size mismatch" , "peer" , peer , "tx" , hash , "size" , delivery .metas [i ].size , "ann" , meta .size )
622
622
if math .Abs (float64 (delivery .metas [i ].size )- float64 (meta .size )) > 8 {
623
+ log .Warn ("Announced transaction size mismatch" , "peer" , peer , "tx" , hash , "size" , delivery .metas [i ].size , "ann" , meta .size )
624
+
623
625
// Normally we should drop a peer considering this is a protocol violation.
624
626
// However, due to the RLP vs consensus format messyness, allow a few bytes
625
627
// wiggle-room where we only warn, but don't drop.
0 commit comments