mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 13:21:43 +01:00
zmq await
This commit is contained in:
parent
dadb03ed1c
commit
3fac0dfaa9
@ -41,9 +41,9 @@ export class BitcoinRpcService {
|
||||
sock.subscribe("rawblock");
|
||||
sock.on("message", async (topic: Buffer, message: Buffer) => {
|
||||
console.log("new block zmq");
|
||||
this.pollMiningInfo();
|
||||
await this.pollMiningInfo();
|
||||
});
|
||||
this.pollMiningInfo();
|
||||
this.pollMiningInfo().then(() => { });
|
||||
} else {
|
||||
setInterval(this.pollMiningInfo.bind(this), 500);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user