Skip to content

Commit

Permalink
notes about CheckEphemeralSpends via in mempool ancestors
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Dec 5, 2023
1 parent f1caa7a commit 4890cf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,8 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
return state.Invalid(TxValidationResult::TX_MEMPOOL_POLICY, "v3-tx-nonstandard", *err_string);
}

// FIXME V3 checks preclude this being hit(?); can only be hit in case where
// anchor *isn't* RBF'd, which implies existence of another child of parent. remove? make an Assume()?
if (auto err_string{CheckEphemeralSpends(ws.m_ptx, ws.m_ancestors)}) {
return state.Invalid(TxValidationResult::TX_RECONSIDERABLE, "ephemeral-anchor-unspent", *err_string);
}
Expand Down

0 comments on commit 4890cf7

Please sign in to comment.