Skip to content

Commit

Permalink
fix for chainlocked case
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides authored and knst committed Jan 28, 2024
1 parent 10312f7 commit c597fb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ static UniValue getassetunlockstatuses(const JSONRPCRequest& request)
return pTipBlockIndex->GetAncestor(pTipBlockIndex->nHeight - cbtx_best_cl->second - 1);
}
}
else {
return pTipBlockIndex->GetAncestor(llmq_ctx.clhandler->GetBestChainLock().getHeight());
}
return nullptr;
}();

Expand Down

0 comments on commit c597fb4

Please sign in to comment.