@@ -106,7 +106,7 @@ static CMutableTransaction CreateProRegTx(const CChain& active_chain, const CTxM
106106 CProRegTx proTx;
107107 proTx.nVersion = CProRegTx::GetMaxVersion (!bls::bls_legacy_scheme);
108108 proTx.collateralOutpoint .n = 0 ;
109- proTx.netInfo .m_addr = LookupNumeric (" 1.1.1.1" , port);
109+ BOOST_CHECK_EQUAL ( proTx.netInfo .AddEntry ( LookupNumeric (" 1.1.1.1" , port)), NetInfoStatus::Success );
110110 proTx.keyIDOwner = ownerKeyRet.GetPubKey ().GetID ();
111111 proTx.pubKeyOperator .Set (operatorKeyRet.GetPublicKey (), bls::bls_legacy_scheme.load ());
112112 proTx.keyIDVoting = ownerKeyRet.GetPubKey ().GetID ();
@@ -128,7 +128,7 @@ static CMutableTransaction CreateProUpServTx(const CChain& active_chain, const C
128128 CProUpServTx proTx;
129129 proTx.nVersion = CProUpServTx::GetMaxVersion (!bls::bls_legacy_scheme);
130130 proTx.proTxHash = proTxHash;
131- proTx.netInfo .m_addr = LookupNumeric (" 1.1.1.1" , port);
131+ BOOST_CHECK_EQUAL ( proTx.netInfo .AddEntry ( LookupNumeric (" 1.1.1.1" , port)), NetInfoStatus::Success );
132132 proTx.scriptOperatorPayout = scriptOperatorPayout;
133133
134134 CMutableTransaction tx;
@@ -634,7 +634,7 @@ void FuncTestMempoolReorg(TestChainSetup& setup)
634634
635635 CProRegTx payload;
636636 payload.nVersion = CProRegTx::GetMaxVersion (!bls::bls_legacy_scheme);
637- payload.netInfo .m_addr = LookupNumeric (" 1.1.1.1" , 1 );
637+ BOOST_CHECK_EQUAL ( payload.netInfo .AddEntry ( LookupNumeric (" 1.1.1.1" , 1 )), NetInfoStatus::Success );
638638 payload.keyIDOwner = ownerKey.GetPubKey ().GetID ();
639639 payload.pubKeyOperator .Set (operatorKey.GetPublicKey (), bls::bls_legacy_scheme.load ());
640640 payload.keyIDVoting = ownerKey.GetPubKey ().GetID ();
@@ -708,7 +708,7 @@ void FuncTestMempoolDualProregtx(TestChainSetup& setup)
708708 auto scriptPayout = GetScriptForDestination (PKHash (payoutKey.GetPubKey ()));
709709
710710 CProRegTx payload;
711- payload.netInfo .m_addr = LookupNumeric (" 1.1.1.1" , 2 );
711+ BOOST_CHECK_EQUAL ( payload.netInfo .AddEntry ( LookupNumeric (" 1.1.1.1" , 2 )), NetInfoStatus::Success );
712712 payload.keyIDOwner = ownerKey.GetPubKey ().GetID ();
713713 payload.pubKeyOperator .Set (operatorKey.GetPublicKey (), bls::bls_legacy_scheme.load ());
714714 payload.keyIDVoting = ownerKey.GetPubKey ().GetID ();
@@ -776,7 +776,7 @@ void FuncVerifyDB(TestChainSetup& setup)
776776
777777 CProRegTx payload;
778778 payload.nVersion = CProRegTx::GetMaxVersion (!bls::bls_legacy_scheme);
779- payload.netInfo .m_addr = LookupNumeric (" 1.1.1.1" , 1 );
779+ BOOST_CHECK_EQUAL ( payload.netInfo .AddEntry ( LookupNumeric (" 1.1.1.1" , 1 )), NetInfoStatus::Success );
780780 payload.keyIDOwner = ownerKey.GetPubKey ().GetID ();
781781 payload.pubKeyOperator .Set (operatorKey.GetPublicKey (), bls::bls_legacy_scheme.load ());
782782 payload.keyIDVoting = ownerKey.GetPubKey ().GetID ();
0 commit comments