cannot create recipients.
This commit is contained in:
parent
2d17a8a59e
commit
f67d4aeac8
@ -4607,9 +4607,18 @@ NAN_METHOD(WalletChangeLabel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If it isn't our address, create a recipient:
|
// If it isn't our address, create a recipient:
|
||||||
if (!IsMine(*pwalletMain, CBitcoinAddress(addr).Get())) {
|
{
|
||||||
WalletSetRecipient(args);
|
CTxDestination address = CBitcoinAddress(addr).Get();
|
||||||
NanReturnValue(True());
|
if (!IsMine(*pwalletMain, address)) {
|
||||||
|
pwalletMain->SetAddressBook(address, accountName, "send");
|
||||||
|
|
||||||
|
//walletdb.WriteName(addr, accountName);
|
||||||
|
//walletdb.WritePurpose(addr, std::string("send"));
|
||||||
|
|
||||||
|
//WalletSetRecipient(args);
|
||||||
|
|
||||||
|
NanReturnValue(True());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find all addresses that have the given account
|
// Find all addresses that have the given account
|
||||||
@ -4619,9 +4628,11 @@ NAN_METHOD(WalletChangeLabel) {
|
|||||||
if (strName == accountName) {
|
if (strName == accountName) {
|
||||||
// walletdb.WriteName(address.ToString(), accountName);
|
// walletdb.WriteName(address.ToString(), accountName);
|
||||||
// walletdb.WritePurpose(address.ToString(), std::string("receive"));
|
// walletdb.WritePurpose(address.ToString(), std::string("receive"));
|
||||||
CKeyID keyID;
|
|
||||||
address.GetKeyID(keyID);
|
//CKeyID keyID;
|
||||||
|
//address.GetKeyID(keyID);
|
||||||
//pwalletMain->SetAddressBook(keyID, accountName, "receive");
|
//pwalletMain->SetAddressBook(keyID, accountName, "receive");
|
||||||
|
|
||||||
pwalletMain->SetAddressBook(address.Get(), accountName, "receive");
|
pwalletMain->SetAddressBook(address.Get(), accountName, "receive");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user