mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 13:21:43 +01:00
loadBlockTemplate
This commit is contained in:
parent
277aa10144
commit
1cd5bcc97d
@ -147,11 +147,9 @@ export class BitcoinRpcService implements OnModuleInit {
|
||||
});
|
||||
}
|
||||
|
||||
let saved = false;
|
||||
while (!saved) {
|
||||
let saveResult = await this.rpcBlockService.saveBlock(blockHeight, JSON.stringify(blockTemplate));
|
||||
saved = saveResult.affected > 0;
|
||||
}
|
||||
|
||||
await this.rpcBlockService.saveBlock(blockHeight, JSON.stringify(blockTemplate));
|
||||
|
||||
return blockTemplate;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user