mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
debug
This commit is contained in:
@@ -134,7 +134,12 @@ export class BitcoinRpcService implements OnModuleInit {
|
||||
|
||||
try{
|
||||
console.log(`Saving block ${blockHeight}`);
|
||||
await this.rpcBlockService.saveBlock(blockHeight, JSON.stringify(blockTemplate));
|
||||
const result = await this.rpcBlockService.saveBlock(blockHeight, JSON.stringify(blockTemplate));
|
||||
if(result.affected < 1){
|
||||
console.error('Block was not saved');
|
||||
}else {
|
||||
console.log('block saved');
|
||||
}
|
||||
|
||||
}catch(e){
|
||||
console.error('Error saving block', e);
|
||||
|
||||
@@ -64,7 +64,7 @@ export class StratumV1Service implements OnModuleInit {
|
||||
if (client.extraNonceAndSessionId != null) {
|
||||
// Handle socket disconnection
|
||||
await client.destroy();
|
||||
console.log(`Client ${client.extraNonceAndSessionId} disconnected, hadError?:${hadError}`);
|
||||
//console.log(`Client ${client.extraNonceAndSessionId} disconnected, hadError?:${hadError}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user