Skip to content

Commit

Permalink
Merge pull request KomodoPlatform#487 from VerusCoin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Asherda authored Mar 16, 2023
2 parents be0959f + ab35c12 commit 69628ef
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/pbaas/notarization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,10 @@ CChainNotarizationData::CChainNotarizationData(UniValue &obj,
(pbn = CPBaaSNotarization(p.vData[0])).IsValid())
{
notarizationUni = pbn.ToUniValue();
if (pBlockHash)
{
pBlockHash->push_back(blockHash);
}
}
else
{
Expand All @@ -1663,16 +1667,16 @@ CChainNotarizationData::CChainNotarizationData(UniValue &obj,
return;
}
}

vtx.push_back(make_pair(CUTXORef(uint256S(uni_get_str(find_value(o, "txid"))),
uni_get_int(find_value(o, "vout"))),
CPBaaSNotarization(notarizationUni)));
if (pBlockHash)
else if (pBlockHash)
{
uint256 blockHash;
blockHash.SetHex(uni_get_str(find_value(o, "blockhash")));
pBlockHash->push_back(blockHash);
}

vtx.push_back(make_pair(CUTXORef(uint256S(uni_get_str(find_value(o, "txid"))),
uni_get_int(find_value(o, "vout"))),
CPBaaSNotarization(notarizationUni)));
if (pEvidence)
{
pEvidence->resize(pEvidence->size() + 1);
Expand Down

0 comments on commit 69628ef

Please sign in to comment.