Change hdrsproof to taxied based, add unspentvalue to taproot

This commit is contained in:
jl777
2019-07-07 03:39:03 -11:00
parent 269c912072
commit 88617145c6
7 changed files with 83 additions and 61 deletions

View File

@@ -981,7 +981,7 @@ UniValue NSPV_spend(char *srcaddr,char *destaddr,int64_t satoshis);
UniValue NSPV_spentinfo(uint256 txid,int32_t vout);
UniValue NSPV_notarizations(int32_t height);
UniValue NSPV_hdrsproof(int32_t prevheight,int32_t nextheight);
UniValue NSPV_txproof(uint256 txid,int32_t vout);
UniValue NSPV_txproof(int32_t vout,uint256 txid,int32_t vout);
uint256 Parseuint256(const char *hexstr);
extern std::string NSPV_address;
@@ -1057,7 +1057,7 @@ UniValue nspv_txproof(const UniValue& params, bool fHelp)
throw runtime_error("nspv_txproof txid height\n");
txid = Parseuint256((char *)params[0].get_str().c_str());
height = atoi((char *)params[1].get_str().c_str());
return(NSPV_txproof(txid,height));
return(NSPV_txproof(0,txid,height));
}
UniValue nspv_spend(const UniValue& params, bool fHelp)