mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Send fee info with init data
This commit is contained in:
parent
e629173304
commit
2ee1f197d1
1 changed files with 6 additions and 2 deletions
|
@ -200,6 +200,7 @@ class WebsocketHandler {
|
|||
'backendInfo': backendInfo.getBackendInfo(),
|
||||
'loadingIndicators': loadingIndicators.getLoadingIndicators(),
|
||||
'da': difficultyAdjustment.getDifficultyAdjustment(),
|
||||
'fees': feeApi.getRecommendedFee(),
|
||||
...this.extraInitProperties
|
||||
};
|
||||
}
|
||||
|
@ -403,6 +404,9 @@ class WebsocketHandler {
|
|||
block.extras.matchRate = matchRate;
|
||||
}
|
||||
|
||||
const da = difficultyAdjustment.getDifficultyAdjustment();
|
||||
const fees = feeApi.getRecommendedFee();
|
||||
|
||||
this.wss.clients.forEach((client) => {
|
||||
if (client.readyState !== WebSocket.OPEN) {
|
||||
return;
|
||||
|
@ -415,8 +419,8 @@ class WebsocketHandler {
|
|||
const response = {
|
||||
'block': block,
|
||||
'mempoolInfo': memPool.getMempoolInfo(),
|
||||
'da': difficultyAdjustment.getDifficultyAdjustment(),
|
||||
'fees': feeApi.getRecommendedFee(),
|
||||
'da': da,
|
||||
'fees': fees,
|
||||
};
|
||||
|
||||
if (mBlocks && client['want-mempool-blocks']) {
|
||||
|
|
Loading…
Add table
Reference in a new issue