@@ -1680,7 +1680,7 @@ UniValue getblockcommitments(const JSONRPCRequest& request)
1680
1680
std::string strPrev = " " ;
1681
1681
if (data.IsBMMRequest (nSidechain, strPrev)) {
1682
1682
UniValue obj (UniValue::VOBJ);
1683
- obj.push_back (Pair (" txout" , i));
1683
+ obj.push_back (Pair (" txout" , ( int64_t ) i));
1684
1684
obj.push_back (Pair (" type" , " BMM h*" ));
1685
1685
obj.push_back (Pair (" h" , hashCritical.ToString ()));
1686
1686
obj.push_back (Pair (" nsidechain" , nSidechain));
@@ -1695,7 +1695,7 @@ UniValue getblockcommitments(const JSONRPCRequest& request)
1695
1695
uint8_t nSidechain = -1 ;
1696
1696
if (scriptPubKey.IsWithdrawalHashCommit (hashWithdrawal, nSidechain)) {
1697
1697
UniValue obj (UniValue::VOBJ);
1698
- obj.push_back (Pair (" txout" , i));
1698
+ obj.push_back (Pair (" txout" , ( int64_t ) i));
1699
1699
obj.push_back (Pair (" type" , " Withdrawal bundle hash" ));
1700
1700
obj.push_back (Pair (" hash" , hashWithdrawal.ToString ()));
1701
1701
obj.push_back (Pair (" nsidechain" , nSidechain));
@@ -1706,7 +1706,7 @@ UniValue getblockcommitments(const JSONRPCRequest& request)
1706
1706
1707
1707
if (scriptPubKey.IsSidechainProposalCommit ()) {
1708
1708
UniValue obj (UniValue::VOBJ);
1709
- obj.push_back (Pair (" txout" , i));
1709
+ obj.push_back (Pair (" txout" , ( int64_t ) i));
1710
1710
obj.push_back (Pair (" type" , " Sidechain proposal" ));
1711
1711
arr.push_back (obj);
1712
1712
@@ -1716,7 +1716,7 @@ UniValue getblockcommitments(const JSONRPCRequest& request)
1716
1716
uint256 hashSidechain;
1717
1717
if (scriptPubKey.IsSidechainActivationCommit (hashSidechain)) {
1718
1718
UniValue obj (UniValue::VOBJ);
1719
- obj.push_back (Pair (" txout" , i));
1719
+ obj.push_back (Pair (" txout" , ( int64_t ) i));
1720
1720
obj.push_back (Pair (" type" , " Sidechain activation ack" ));
1721
1721
obj.push_back (Pair (" hash" , hashSidechain.ToString ()));
1722
1722
arr.push_back (obj);
@@ -1726,7 +1726,7 @@ UniValue getblockcommitments(const JSONRPCRequest& request)
1726
1726
1727
1727
if (scriptPubKey.IsSCDBBytes ()) {
1728
1728
UniValue obj (UniValue::VOBJ);
1729
- obj.push_back (Pair (" txout" , i));
1729
+ obj.push_back (Pair (" txout" , ( int64_t ) i));
1730
1730
obj.push_back (Pair (" type" , " SCDB update bytes" ));
1731
1731
obj.push_back (Pair (" script" , ScriptToAsmStr (scriptPubKey)));
1732
1732
arr.push_back (obj);
@@ -1742,7 +1742,7 @@ UniValue getblockcommitments(const JSONRPCRequest& request)
1742
1742
scriptPubKey[5 ] == 0xed ) {
1743
1743
1744
1744
UniValue obj (UniValue::VOBJ);
1745
- obj.push_back (Pair (" txout" , i));
1745
+ obj.push_back (Pair (" txout" , ( int64_t ) i));
1746
1746
obj.push_back (Pair (" type" , " Witness commitment" ));
1747
1747
obj.push_back (Pair (" script" , ScriptToAsmStr (scriptPubKey)));
1748
1748
arr.push_back (obj);
0 commit comments