mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-16 18:19:40 +08:00
fix: bug in test -- stackerdb-aware nodes fall back to HandshakeAccept of the remote peer has a different view of the reward cycle consensus hash
This commit is contained in:
@@ -3187,15 +3187,16 @@ mod test {
|
||||
assert_eq!(data.handshake.data_url, "http://peer2.com".into());
|
||||
assert_eq!(data.heartbeat_interval, conn_opts.heartbeat);
|
||||
|
||||
// remote peer always replies with its supported smart contracts
|
||||
assert_eq!(
|
||||
db_data.smart_contracts,
|
||||
vec![ContractId::parse("SP000000000000000000002Q6VF78.sbtc").unwrap()]
|
||||
);
|
||||
|
||||
if peer_1_rc_consensus_hash == peer_2_rc_consensus_hash {
|
||||
assert_eq!(db_data.rc_consensus_hash, chain_view_1.rc_consensus_hash);
|
||||
|
||||
// remote peer always replies with its supported smart contracts
|
||||
assert_eq!(
|
||||
db_data.smart_contracts,
|
||||
vec![ContractId::parse("SP000000000000000000002Q6VF78.sbtc")
|
||||
.unwrap()]
|
||||
);
|
||||
|
||||
// peers learn each others' smart contract DBs
|
||||
eprintln!(
|
||||
"{:?}, {:?}",
|
||||
|
||||
Reference in New Issue
Block a user