update RBF timeline over websocket

This commit is contained in:
Mononaut committed 2023-05-03 12:52:21 -06:00
1 parent 1b843da785
commit 7b2a1cfd10
6 files changed
+110 -53

No files matched your search

+6
View File
@@ -278,6 +278,7 @@ class WebsocketHandler {
const rbfTransactions = Common.findRbfTransactions(newTransactions, deletedTransactions);
const da = difficultyAdjustment.getDifficultyAdjustment();
memPool.handleRbfTransactions(rbfTransactions);
const rbfChanges = rbfCache.getRbfChanges();
const recommendedFees = feeApi.getRecommendedFee();
this.wss.clients.forEach(async (client) => {
@@ -410,6 +411,11 @@ class WebsocketHandler {
}
}
}
const rbfChange = rbfChanges.map[client['track-tx']];
if (rbfChange) {
response['rbfInfo'] = rbfChanges.chains[rbfChange];
}
}
if (client['track-mempool-block'] >= 0) {