Skip to content

Commit

Permalink
comments for trees/props comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Jun 6, 2022
1 parent 3b6643d commit acd9a66
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ case class ErgoTransaction(override val inputs: IndexedSeq[Input],
log.debug(s"Reemission tokens to burn: $toBurn")
val reemissionOutputs = outputCandidates.filter { out =>
require(!out.tokens.contains(reemissionTokenId), "outputs contain reemission token")
// we compare by trees in the mainnet (to avoid disagreement with versions 4.0.29-31 doing that),
// and by propositions in the testnet (as there are v0 & v1 transactions paying to pay-to-reemission there)
// see https://github.com/ergoplatform/ergo/pull/1728 for details.
if (chainSettings.isMainnet) {
out.ergoTree == payToReemissionContract
} else {
Expand Down

0 comments on commit acd9a66

Please sign in to comment.