mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
zmq await
This commit is contained in:
@@ -41,9 +41,9 @@ export class BitcoinRpcService {
|
|||||||
sock.subscribe("rawblock");
|
sock.subscribe("rawblock");
|
||||||
sock.on("message", async (topic: Buffer, message: Buffer) => {
|
sock.on("message", async (topic: Buffer, message: Buffer) => {
|
||||||
console.log("new block zmq");
|
console.log("new block zmq");
|
||||||
this.pollMiningInfo();
|
await this.pollMiningInfo();
|
||||||
});
|
});
|
||||||
this.pollMiningInfo();
|
this.pollMiningInfo().then(() => { });
|
||||||
} else {
|
} else {
|
||||||
setInterval(this.pollMiningInfo.bind(this), 500);
|
setInterval(this.pollMiningInfo.bind(this), 500);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user