mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
loadBlockTemplate
This commit is contained in:
@@ -147,11 +147,9 @@ export class BitcoinRpcService implements OnModuleInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let saved = false;
|
|
||||||
while (!saved) {
|
await this.rpcBlockService.saveBlock(blockHeight, JSON.stringify(blockTemplate));
|
||||||
let saveResult = await this.rpcBlockService.saveBlock(blockHeight, JSON.stringify(blockTemplate));
|
|
||||||
saved = saveResult.affected > 0;
|
|
||||||
}
|
|
||||||
return blockTemplate;
|
return blockTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user