diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-05-03 08:24:57 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-05-03 08:24:57 -0700 |
commit | 519365cfa5f1daf40bcf51c4e1383dae2c6e4595 (patch) | |
tree | a70744479b9aa7e038482558cd71909fed23d00f | |
parent | 8737e1ee204a910423fe3e21ae59e4c3032df697 (diff) | |
parent | 5ec05f0a280acdfeafdfb9920ce157108c161449 (diff) |
Merge pull request #173 from gavinandresen/testnet_isstandard.
Accept non-standard transactions on testnet.
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -681,8 +681,8 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi if (GetSigOpCount() > nSize / 34 || nSize < 100) return error("AcceptToMemoryPool() : nonstandard transaction"); - // Rather not work on nonstandard transactions - if (!IsStandard()) + // Rather not work on nonstandard transactions (unless -testnet) + if (!fTestNet && !IsStandard()) return error("AcceptToMemoryPool() : nonstandard transaction type"); // Do we already have it? |