aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-01-17 10:04:08 -0800
committerGavin Andresen <[email protected]>2013-01-17 10:04:08 -0800
commit91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e (patch)
treed710cfa159d9077e6272b83491a126fb56ff3958 /src/wallet.cpp
parentMerge pull request #2181 from Diapolo/translations (diff)
parentFilter mempool command (diff)
downloaddiscoin-91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e.tar.xz
discoin-91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e.zip
Merge pull request #1795 from TheBlueMatt/bloom
Bloom filters
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 37b86c35b..f49bfb5f8 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -826,17 +826,16 @@ void CWalletTx::RelayWalletTransaction()
{
BOOST_FOREACH(const CMerkleTx& tx, vtxPrev)
{
- if (!tx.IsCoinBase()) {
+ if (!tx.IsCoinBase())
if (tx.GetDepthInMainChain() == 0)
- RelayMessage(CInv(MSG_TX, tx.GetHash()), (CTransaction)tx);
- }
+ RelayTransaction((CTransaction)tx, tx.GetHash());
}
if (!IsCoinBase())
{
if (GetDepthInMainChain() == 0) {
uint256 hash = GetHash();
printf("Relaying wtx %s\n", hash.ToString().substr(0,10).c_str());
- RelayMessage(CInv(MSG_TX, hash), (CTransaction)*this);
+ RelayTransaction((CTransaction)*this, hash);
}
}
}