aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-04-24 18:27:00 -0400
committerGavin Andresen <[email protected]>2013-05-03 10:52:09 -0400
commit8de9bb53af32f7f6b09c06f831f2c0a7b4e95303 (patch)
treeafb7c68d3fd15203308f38a47a3cc3875d476a2f /src/main.cpp
parentRemove flaky util thread unit tests (diff)
downloaddiscoin-8de9bb53af32f7f6b09c06f831f2c0a7b4e95303.tar.xz
discoin-8de9bb53af32f7f6b09c06f831f2c0a7b4e95303.zip
Define dust transaction outputs, and make them non-standard
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index aace382d8..d0d6a99eb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -384,7 +384,7 @@ bool CTransaction::IsStandard() const
BOOST_FOREACH(const CTxOut& txout, vout) {
if (!::IsStandard(txout.scriptPubKey))
return false;
- if (txout.nValue == 0)
+ if (txout.IsDust())
return false;
}
return true;