Test
This commit is contained in:
@@ -142,7 +142,7 @@ int32_t Jumblr_depositaddradd(char *depositaddr) // external
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
retval = JUMBLR_ERROR_NOTINWALLET;
|
retval = JUMBLR_ERROR_NOTINWALLET;
|
||||||
printf("%s not in wallet: ismine.%p %d %s\n",ismine,is_cJSON_True(ismine),jprint(retjson,0));
|
printf("%s not in wallet: ismine.%p %d %s\n",depositaddr,ismine,is_cJSON_True(ismine),jprint(retjson,0));
|
||||||
}
|
}
|
||||||
free_json(retjson);
|
free_json(retjson);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1107,13 +1107,18 @@ void AsyncRPCOperation_sendmany::add_taddr_change_output_to_tx(CAmount amount) {
|
|||||||
LOCK2(cs_main, pwalletMain->cs_wallet);
|
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
|
|
||||||
EnsureWalletIsUnlocked();
|
EnsureWalletIsUnlocked();
|
||||||
CReserveKey keyChange(pwalletMain);
|
if ( 0 )
|
||||||
CPubKey vchPubKey;
|
CScript scriptPubKey = GetScriptForDestination(fromaddress.Get());
|
||||||
bool ret = keyChange.GetReservedKey(vchPubKey);
|
else
|
||||||
if (!ret) {
|
{
|
||||||
throw JSONRPCError(RPC_WALLET_KEYPOOL_RAN_OUT, "Could not generate a taddr to use as a change address"); // should never fail, as we just unlocked
|
CReserveKey keyChange(pwalletMain);
|
||||||
|
CPubKey vchPubKey;
|
||||||
|
bool ret = keyChange.GetReservedKey(vchPubKey);
|
||||||
|
if (!ret) {
|
||||||
|
throw JSONRPCError(RPC_WALLET_KEYPOOL_RAN_OUT, "Could not generate a taddr to use as a change address"); // should never fail, as we just unlocked
|
||||||
|
}
|
||||||
|
CScript scriptPubKey = GetScriptForDestination(vchPubKey.GetID());
|
||||||
}
|
}
|
||||||
CScript scriptPubKey = GetScriptForDestination(vchPubKey.GetID());
|
|
||||||
CTxOut out(amount, scriptPubKey);
|
CTxOut out(amount, scriptPubKey);
|
||||||
|
|
||||||
CMutableTransaction rawTx(tx_);
|
CMutableTransaction rawTx(tx_);
|
||||||
|
|||||||
Reference in New Issue
Block a user