Skip to content

Commit 50e4004

Browse files
committed
fix: Do not assert special tx type for cbtx in simplified mn list difff output
1 parent 793dde0 commit 50e4004

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/evo/simplifiedmns.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ UniValue CSimplifiedMNListDiff::ToJson(bool extended) const
279279
}
280280
obj.pushKV("newQuorums", newQuorumsArr);
281281

282-
if (const auto opt_cbTxPayload = GetTxPayload<CCbTx>(*cbTx)) {
282+
// Do not assert special tx type here since this can be called prior to DIP0003 activation
283+
if (const auto opt_cbTxPayload = GetTxPayload<CCbTx>(*cbTx, false)) {
283284
obj.pushKV("merkleRootMNList", opt_cbTxPayload->merkleRootMNList.ToString());
284285
if (opt_cbTxPayload->nVersion >= CCbTx::Version::MERKLE_ROOT_QUORUMS) {
285286
obj.pushKV("merkleRootQuorums", opt_cbTxPayload->merkleRootQuorums.ToString());

0 commit comments

Comments
 (0)