Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
lbrycrd
Commits
ebeb2bd0
Commit
ebeb2bd0
authored
Aug 06, 2018
by
Anthony Fieroni
Committed by
Umpei Kay Kurokawa
Sep 05, 2018
Browse files
Specify non-standard transaction error when it's dust
Signed-off-by:
Anthony Fieroni
<
bvbfan@abv.bg
>
parent
72cbc491
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
ebeb2bd0
...
...
@@ -1034,8 +1034,12 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
// Rather not work on nonstandard transactions (unless -testnet/-regtest)
string
reason
;
if
(
fRequireStandard
&&
!
IsStandardTx
(
tx
,
reason
))
return
state
.
DoS
(
0
,
false
,
REJECT_NONSTANDARD
,
reason
);
if
(
fRequireStandard
&&
!
IsStandardTx
(
tx
,
reason
))
{
if
(
reason
==
"dust"
)
return
state
.
DoS
(
0
,
false
,
REJECT_DUST
,
reason
);
else
return
state
.
DoS
(
0
,
false
,
REJECT_NONSTANDARD
,
reason
);
}
// Don't relay version 2 transactions until CSV is active, and we can be
// sure that such transactions will be mined (unless we're on
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment