Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcdump.cpp
Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | if (merkleBlock.txn.ExtractMatches(vMatch, vIndex) == | ||||
"Something wrong with merkleblock"); | "Something wrong with merkleblock"); | ||||
} | } | ||||
wtx.nIndex = txnIndex; | wtx.nIndex = txnIndex; | ||||
wtx.hashBlock = merkleBlock.header.GetHash(); | wtx.hashBlock = merkleBlock.header.GetHash(); | ||||
LOCK2(cs_main, pwallet->cs_wallet); | LOCK2(cs_main, pwallet->cs_wallet); | ||||
if (pwallet->IsMine(wtx)) { | if (pwallet->IsMine(*wtx.tx)) { | ||||
pwallet->AddToWallet(wtx, false); | pwallet->AddToWallet(wtx, false); | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_INVALID_ADDRESS_OR_KEY, | RPC_INVALID_ADDRESS_OR_KEY, | ||||
"No addresses in wallet correspond to included transaction"); | "No addresses in wallet correspond to included transaction"); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,029 Lines • Show Last 20 Lines |