@@ -1339,8 +1339,8 @@ impl ConversationP2P {
1339
1339
self . update_from_stacker_db_handshake_data ( stackerdb_accept) ;
1340
1340
} else {
1341
1341
// remote peer's burnchain view has diverged, so assume no longer replicating (we
1342
- // can't talk to it anyway). This can happen once per reward cycle for a few
1343
- // minutes as nodes begin the next reward cycle , but it's harmless -- at worst, it
1342
+ // can't talk to it anyway). This can happen once per burnchain block for a few
1343
+ // seconds as nodes begin processing the next Stacks blocks , but it's harmless -- at worst, it
1344
1344
// just means that no stacker DB replication happens between this peer and
1345
1345
// localhost during this time.
1346
1346
self . clear_stacker_db_handshake_data ( ) ;
@@ -1779,13 +1779,16 @@ impl ConversationP2P {
1779
1779
let local_peer = network. get_local_peer ( ) ;
1780
1780
let burnchain_view = network. get_chain_view ( ) ;
1781
1781
1782
+ // remote peer's Stacks chain tip is different from ours, meaning it might have a different
1783
+ // stackerdb configuration view (and we won't be able to authenticate their chunks, and
1784
+ // vice versa)
1782
1785
if burnchain_view. rc_consensus_hash != getchunkinv. rc_consensus_hash {
1783
1786
debug ! (
1784
1787
"{:?}: NACK StackerDBGetChunkInv; {} != {}" ,
1785
1788
local_peer, & burnchain_view. rc_consensus_hash, & getchunkinv. rc_consensus_hash
1786
1789
) ;
1787
1790
return Ok ( StacksMessageType :: Nack ( NackData :: new (
1788
- NackErrorCodes :: InvalidPoxFork ,
1791
+ NackErrorCodes :: StaleView ,
1789
1792
) ) ) ;
1790
1793
}
1791
1794
@@ -1827,7 +1830,7 @@ impl ConversationP2P {
1827
1830
local_peer, & burnchain_view. rc_consensus_hash, & getchunk. rc_consensus_hash
1828
1831
) ;
1829
1832
return Ok ( StacksMessageType :: Nack ( NackData :: new (
1830
- NackErrorCodes :: InvalidPoxFork ,
1833
+ NackErrorCodes :: StaleView ,
1831
1834
) ) ) ;
1832
1835
}
1833
1836
0 commit comments