We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00cfc9f + 4ef92a9 commit 80ca273Copy full SHA for 80ca273
src/wallet.cpp
@@ -895,7 +895,10 @@ void CWalletTx::RelayWalletTransaction()
895
{
896
BOOST_FOREACH(const CMerkleTx& tx, vtxPrev)
897
898
- if (!tx.IsCoinBase())
+ // Important: versions of bitcoin before 0.8.6 had a bug that inserted
899
+ // empty transactions into the vtxPrev, which will cause the node to be
900
+ // banned when retransmitted, hence the check for !tx.vin.empty()
901
+ if (!tx.IsCoinBase() && !tx.vin.empty())
902
if (tx.GetDepthInMainChain() == 0)
903
RelayTransaction((CTransaction)tx, tx.GetHash());
904
}
0 commit comments