From c3f1008f80c3fa00ce1b366b3345c370e9abee34 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 11 Jul 2019 00:08:58 -1100 Subject: [PATCH] Syntax --- src/komodo_nSPV_defs.h | 1 + src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_nSPV_defs.h b/src/komodo_nSPV_defs.h index 537a7209e..c72fb2aeb 100644 --- a/src/komodo_nSPV_defs.h +++ b/src/komodo_nSPV_defs.h @@ -41,6 +41,7 @@ #define NSPV_BROADCASTRESP 0x0d int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int32_t height,CTransaction &tx,int64_t extradata,uint32_t tiptime,int64_t &rewardsum); +UniValue NSPV_spend(char *srcaddr,char *destaddr,int64_t satoshis); extern uint256 SIG_TXHASH; uint32_t NSPV_blocktime(int32_t hdrheight); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 76924be44..e4a559bc4 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -7007,7 +7007,7 @@ UniValue faucetfund(const UniValue& params, bool fHelp) cp = CCinit(&C,EVAL_FAUCET); v = MakeCC1vout(EVAL_FAUCET,funds,GetUnspendable(cp,0)); Getscriptaddress(coinaddr,CScript() << ParseHex(HexStr(pubkey2pk(Mypubkey()))) << OP_CHECKSIG); - return(NSPV_spend(srcaddr,HexStr(v.scriptPubKey.begin(),v.scriptPubKey.end()),funds)); + return(NSPV_spend(coinaddr,HexStr(v.scriptPubKey.begin(),v.scriptPubKey.end()),funds)); } if ( ensure_CCrequirements(EVAL_FAUCET) < 0 ) throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");