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] [clusterRoot]
); );
const cluster = clusterRows[0]; const cluster = clusterRows[0];
cluster.effectiveFeePerVsize = cluster.fee_rate;
if (cluster?.txs) { if (cluster?.txs) {
cluster.effectiveFeePerVsize = cluster.fee_rate;
cluster.txs = this.unpack(cluster.txs); cluster.txs = this.unpack(cluster.txs);
return cluster; return cluster;
} }