aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2016-12-19 11:25:15 -0500
committerRussell Yanofsky <[email protected]>2020-05-01 05:59:09 -0500
commit2b9cba206594bfbcefcef0c88a0bf793819643bd (patch)
treeb2a2f7ffb44094dd43e234f87cf6da579d315c89 /src/net_processing.cpp
parentMerge #16426: Reverse cs_main, cs_wallet lock order and reduce cs_main locking (diff)
downloaddiscoin-2b9cba206594bfbcefcef0c88a0bf793819643bd.tar.xz
discoin-2b9cba206594bfbcefcef0c88a0bf793819643bd.zip
Remove CWalletTx merging logic from AddToWallet
Instead of AddToWallet taking a temporary CWalletTx object and then potentially merging it with a pre-existing CWalletTx, have it take a callback so callers can update the pre-existing CWalletTx directly. This makes AddToWallet simpler because now it is only has to be concerned with saving CWalletTx objects and not merging them. This makes AddToWallet calls clearer because they can now make direct updates to CWalletTx entries without having to make temporary objects and then worry about how they will be merged. This is a pure refactoring, no behavior is changing.
Diffstat (limited to 'src/net_processing.cpp')
0 files changed, 0 insertions, 0 deletions