mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Track and report wallet transaction clones
Adds a "walletconflicts" array to transaction info; if a wallet transaction is mutated, the alternate transaction id or ids are reported there (usually the array will be empty). Metadata from the original transaction is copied to the mutant, so the transaction time and "from" account of the mutant are reported correctly.
This commit is contained in:
parent
9a3d936fc2
commit
731b89b8b5
5 changed files with 128 additions and 9 deletions
|
|
@ -382,7 +382,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
|
|||
if (wtx.nOrderPos == -1)
|
||||
wss.fAnyUnordered = true;
|
||||
|
||||
pwallet->mapWallet[hash] = wtx;
|
||||
pwallet->AddToWallet(wtx, true);
|
||||
//// debug print
|
||||
//LogPrintf("LoadWallet %s\n", wtx.GetHash().ToString());
|
||||
//LogPrintf(" %12"PRId64" %s %s %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue