aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2011-11-07 00:05:42 +0100
committerPieter Wuille <[email protected]>2011-11-07 00:11:34 +0100
commitd825e6a31bf980dde8afd94fba61614523e60f09 (patch)
treee39034b1e8bfbc103299fa84b15273a3a275719e /src/wallet.cpp
parentMerge pull request #606 from dooglus/add-english-translation (diff)
downloaddiscoin-d825e6a31bf980dde8afd94fba61614523e60f09.tar.xz
discoin-d825e6a31bf980dde8afd94fba61614523e60f09.zip
Some extra comments
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 46c57e2fc..64ee5c3b8 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -289,6 +289,9 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
return true;
}
+// Add a transaction to the wallet, or update it.
+// pblock is optional, but should be provided if the transaction is known to be in a block.
+// If fUpdate is true, existing transactions will be updated.
bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate)
{
uint256 hash = tx.GetHash();
@@ -551,6 +554,9 @@ bool CWalletTx::WriteToDisk()
return CWalletDB(pwallet->strWalletFile).WriteTx(GetHash(), *this);
}
+// Scan the block chain (starting in pindexStart) for transactions
+// from or to us. If fUpdate is true, found transactions that already
+// exist in the wallet will be updated.
int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)
{
int ret = 0;