From 5ec05f0a280acdfeafdfb9920ce157108c161449 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Wed, 20 Apr 2011 11:20:33 -0400 Subject: Accept non-standard transactions on testnet. --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 1b15d7e07e..3da06ba21d 100644 --- a/main.cpp +++ b/main.cpp @@ -691,8 +691,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? -- cgit v1.2.3