v30.3-roots.1 · Commit 54: [PATCH 54/68] mempool: snapshot dynamic dust for standardness checks
src/validation.cpp
Before: src/validation.cpp · After: src/validation.cpp
File metadata
index 912f9d02f2e3287855160beb40c47cfc16bb3e46..a3ada7f9e19cb0d76da1bcd034b2e21c95046bc3 100644
Download original patch · Release notes
Diff rows 1–16 of 16. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/validation.cpp
CHANGED
|
@@ -872,7 +872,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
|
|
|
872
872
|
|
|
873
873
|
// Rather not work on nonstandard transactions (unless -testnet/-regtest)
|
|
874
874
|
std::string reason;
|
|
875
|
-
if (m_pool.m_opts.require_standard && !IsStandardTx(tx, m_pool.m_opts, reason, ignore_rejects)) {
|
|
875
|
+
if (m_pool.m_opts.require_standard && !IsStandardTx(tx, m_pool.GetStandardnessOptions(), reason, ignore_rejects)) {
|
|
876
876
|
return state.Invalid(TxValidationResult::TX_NOT_STANDARD, reason);
|
|
877
877
|
}
|
|
878
878
|
|
|
@@ -1047,7 +1047,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
if (m_pool.m_opts.require_standard && !AreInputsStandard(tx, m_view, m_pool.m_opts, "bad-txns-input-", reason, ignore_rejects)) {
|
|
1050
|
+
if (m_pool.m_opts.require_standard && !AreInputsStandard(tx, m_view, m_pool.GetStandardnessOptions(), "bad-txns-input-", reason, ignore_rejects)) {
|
|
1051
1051
|
return state.Invalid(TxValidationResult::TX_INPUTS_NOT_STANDARD, reason);
|
|
1052
1052
|
}
|
|
1053
1053
|
|