@@ -3403,7 +3403,7 @@ UniValue getpeginaddress(const JSONRPCRequest& request)
3403
3403
3404
3404
" \n Result:\n "
3405
3405
" \" mainchain_address\" (string) Mainchain Bitcoin deposit address to send bitcoin to\n "
3406
- " \" witness_program \" (string) The witness program in hex that was committed to. This may be required in `claimpegin` to retrieve pegged-in funds\n "
3406
+ " \" claim_script \" (string) The claim script in hex that was committed to. This may be required in `claimpegin` to retrieve pegged-in funds\n "
3407
3407
" \n Examples:\n "
3408
3408
+ HelpExampleCli (" getpeginaddress" , " " )
3409
3409
+ HelpExampleRpc (" getpeginaddress" , " " )
@@ -3430,10 +3430,10 @@ UniValue getpeginaddress(const JSONRPCRequest& request)
3430
3430
3431
3431
UniValue fundinginfo (UniValue::VOBJ);
3432
3432
3433
- AuditLogPrintf (" %s : getpeginaddress mainchain_address: %s witness_program : %s\n " , getUser (), destAddr.ToString (), HexStr (witProg));
3433
+ AuditLogPrintf (" %s : getpeginaddress mainchain_address: %s claim_script : %s\n " , getUser (), destAddr.ToString (), HexStr (witProg));
3434
3434
3435
3435
fundinginfo.pushKV (" mainchain_address" , destAddr.ToString ());
3436
- fundinginfo.pushKV (" witness_program " , HexStr (witProg));
3436
+ fundinginfo.pushKV (" claim_script " , HexStr (witProg));
3437
3437
return fundinginfo;
3438
3438
}
3439
3439
@@ -3513,14 +3513,14 @@ UniValue createrawpegin(const JSONRPCRequest& request)
3513
3513
{
3514
3514
if (request.fHelp || request.params .size () < 2 || request.params .size () > 3 )
3515
3515
throw std::runtime_error (
3516
- " createrawpegin bitcoinTx txoutproof ( witness_program )\n "
3516
+ " createrawpegin bitcoinTx txoutproof ( claim_script )\n "
3517
3517
" \n Creates a raw transaction to claim coins from the main chain by creating a withdraw transaction with the necessary metadata after the corresponding Bitcoin transaction.\n "
3518
3518
" Note that this call will not sign the transaction.\n "
3519
3519
" If a transaction is not relayed it may require manual addition to a functionary mempool in order for it to be mined.\n "
3520
3520
" \n Arguments:\n "
3521
3521
" 1. \" bitcoinTx\" (string, required) The raw bitcoin transaction (in hex) depositing bitcoin to the mainchain_address generated by getpeginaddress\n "
3522
3522
" 2. \" txoutproof\" (string, required) A rawtxoutproof (in hex) generated by bitcoind's `gettxoutproof` containing a proof of only bitcoinTx\n "
3523
- " 3. \" witness_program \" (string, optional) The witness program generated by getpeginaddress. Only needed if not in wallet.\n "
3523
+ " 3. \" claim_script \" (string, optional) The witness program generated by getpeginaddress. Only needed if not in wallet.\n "
3524
3524
" \n Result:\n "
3525
3525
" {\n "
3526
3526
" \" transaction\" (string) Raw transaction in hex\n "
@@ -3576,7 +3576,7 @@ UniValue createrawpegin(const JSONRPCRequest& request)
3576
3576
std::vector<unsigned char > witnessBytes (ParseHex (request.params [2 ].get_str ()));
3577
3577
witnessProgScript = CScript (witnessBytes.begin (), witnessBytes.end ());
3578
3578
if (!witnessProgScript.IsWitnessProgram (version, witnessProgram) || version != 0 ) {
3579
- throw JSONRPCError (RPC_INVALID_PARAMETER, " Given witness_program is not a valid v0 witness program." );
3579
+ throw JSONRPCError (RPC_INVALID_PARAMETER, " Given claim_script is not a valid v0 witness program." );
3580
3580
}
3581
3581
nOut = GetPeginTxnOutputIndex (txBTC, witnessProgScript);
3582
3582
}
@@ -3681,14 +3681,14 @@ UniValue claimpegin(const JSONRPCRequest& request)
3681
3681
3682
3682
if (request.fHelp || request.params .size () < 2 || request.params .size () > 3 )
3683
3683
throw std::runtime_error (
3684
- " claimpegin bitcoinTx txoutproof ( witness_program )\n "
3684
+ " claimpegin bitcoinTx txoutproof ( claim_script )\n "
3685
3685
" \n Claim coins from the main chain by creating a withdraw transaction with the necessary metadata after the corresponding Bitcoin transaction.\n "
3686
3686
" Note that the transaction will not be relayed unless it is buried at least 102 blocks deep.\n "
3687
3687
" If a transaction is not relayed it may require manual addition to a functionary mempool in order for it to be mined.\n "
3688
3688
" \n Arguments:\n "
3689
3689
" 1. \" bitcoinTx\" (string, required) The raw bitcoin transaction (in hex) depositing bitcoin to the mainchain_address generated by getpeginaddress\n "
3690
3690
" 2. \" txoutproof\" (string, required) A rawtxoutproof (in hex) generated by bitcoind's `gettxoutproof` containing a proof of only bitcoinTx\n "
3691
- " 3. \" witness_program \" (string, optional) The witness program generated by getpeginaddress. Only needed if not in wallet.\n "
3691
+ " 3. \" claim_script \" (string, optional) The witness program generated by getpeginaddress. Only needed if not in wallet.\n "
3692
3692
" \n Result:\n "
3693
3693
" \" txid\" (string) Txid of the resulting sidechain transaction\n "
3694
3694
" \n Examples:\n "
@@ -4062,8 +4062,8 @@ static const CRPCCommand commands[] =
4062
4062
{ " wallet" , " dumpissuanceblindingkey" , &dumpissuanceblindingkey, true , {" txid" , " vin" } },
4063
4063
{ " wallet" , " dumpwallet" , &dumpwallet, true , {" filename" } },
4064
4064
{ " wallet" , " encryptwallet" , &encryptwallet, true , {" passphrase" } },
4065
- { " wallet" , " claimpegin" , &claimpegin, false , {" bitcoinT" , " txoutproof" , " witness_program " } },
4066
- { " wallet" , " createrawpegin" , &createrawpegin, false , {" bitcoinT" , " txoutproof" , " witness_program " } },
4065
+ { " wallet" , " claimpegin" , &claimpegin, false , {" bitcoinT" , " txoutproof" , " claim_script " } },
4066
+ { " wallet" , " createrawpegin" , &createrawpegin, false , {" bitcoinT" , " txoutproof" , " claim_script " } },
4067
4067
{ " wallet" , " getaccountaddress" , &getaccountaddress, true , {" account" } },
4068
4068
{ " wallet" , " getaccount" , &getaccount, true , {" address" } },
4069
4069
{ " wallet" , " getaddressesbyaccount" , &getaddressesbyaccount, true , {" account" } },
0 commit comments