Skip to content

Commit

Permalink
Skip pre-eunospaya vout check on regtest (#2954)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored Jun 28, 2024
1 parent 46174c4 commit f750638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfi/consensus/txvisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Res CCustomTxVisitor::CheckCustomTx() const {
const auto &consensus = txCtx.GetConsensus();
const auto height = txCtx.GetHeight();
const auto &tx = txCtx.GetTransaction();
if (static_cast<int>(height) < consensus.DF10EunosPayaHeight) {
if (!IsRegtestNetwork() && static_cast<int>(height) < consensus.DF10EunosPayaHeight) {
if (tx.vout.size() != 2) {
return Res::Err("malformed tx vouts ((wrong number of vouts)");
}
Expand Down

0 comments on commit f750638

Please sign in to comment.