From 65ce215641a213cd085671a32c62cb35a9d1de62 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 24 Aug 2012 12:14:48 +0200 Subject: [PATCH] Make 0-value outputs non-standard --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 56596ef183..f71cfe7caa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -281,9 +281,12 @@ bool CTransaction::IsStandard() const if (!txin.scriptSig.IsPushOnly()) return false; } - BOOST_FOREACH(const CTxOut& txout, vout) + BOOST_FOREACH(const CTxOut& txout, vout) { if (!::IsStandard(txout.scriptPubKey)) return false; + if (txout.nValue == 0) + return false; + } return true; }