diff --git a/src/net/chat.rs b/src/net/chat.rs index a9c385542..8c96664f0 100644 --- a/src/net/chat.rs +++ b/src/net/chat.rs @@ -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!( "{:?}, {:?}",