Hotfix for undefined cpfp cluster bug

This commit is contained in:
Mononaut 2023-06-21 19:07:00 -04:00
parent e5efc2957a
commit e18f3800be
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -120,8 +120,8 @@ class CpfpRepository {
[clusterRoot]
);
const cluster = clusterRows[0];
cluster.effectiveFeePerVsize = cluster.fee_rate;
if (cluster?.txs) {
cluster.effectiveFeePerVsize = cluster.fee_rate;
cluster.txs = this.unpack(cluster.txs);
return cluster;
}