aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-04-11 10:34:30 -0400
committerJohn Newbery <john@johnnewbery.com>2017-04-11 17:17:46 -0400
commitd0cd0bd6d99bd28ca0014a715ad2b565b3f787a4 (patch)
tree0d20067bf9fe16238e1266b023e78c18404eef81 /src/wallet/wallet.h
parent714e4ad13d805d45210d390fae83790360f47d9a (diff)
Make CWallet::SyncTransactions() interface friendlier
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index cf90d261a5..8ebd59f8cd 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -659,8 +659,9 @@ private:
void SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator>);
- /* Used by TransactionAddedToMemorypool/BlockConnected/Disconnected */
- void SyncTransaction(const CTransactionRef& tx, const CBlockIndex *pindexBlockConnected, int posInBlock);
+ /* Used by TransactionAddedToMemorypool/BlockConnected/Disconnected.
+ * Should be called with pindexBlock and posInBlock if this is for a transaction that is included in a block. */
+ void SyncTransaction(const CTransactionRef& tx, const CBlockIndex *pindex = NULL, int posInBlock = 0);
/* the HD chain data model (external chain counters) */
CHDChain hdChain;