@@ -262,7 +262,7 @@ protected async Task<SubmitResult> SubmitBlockAsync(Share share, string blockHex
262262 ? new RpcRequest ( BitcoinCommands . SubmitBlock , new [ ] { blockHex } )
263263 : new RpcRequest ( BitcoinCommands . GetBlockTemplate , new { mode = "submit" , data = blockHex } ) ;
264264
265- var batch = new [ ]
265+ var batch = new [ ]
266266 {
267267 submitBlockRequest ,
268268 new RpcRequest ( BitcoinCommands . GetBlock , new [ ] { share . BlockHash } )
@@ -466,17 +466,17 @@ protected override async Task PostStartInitAsync(CancellationToken ct)
466466 PostChainIdentifyConfigure ( ) ;
467467
468468 // ensure pool owns wallet
469- if ( validateAddressResponse is not { IsValid : true } )
469+ if ( validateAddressResponse is not { IsValid : true } )
470470 throw new PoolStartupException ( $ "Daemon reports pool-address '{ poolConfig . Address } ' as invalid", poolConfig . Id ) ;
471471
472- isPoS = poolConfig . Template is BitcoinTemplate { IsPseudoPoS : true } ||
472+ isPoS = poolConfig . Template is BitcoinTemplate { IsPseudoPoS : true } ||
473473 ( difficultyResponse . Values ( ) . Any ( x => x . Path == "proof-of-stake" && ! difficultyResponse . Values ( ) . Any ( x => x . Path == "proof-of-work" ) ) ) ;
474474
475475 // Create pool address script from response
476476 if ( ! isPoS )
477477 {
478478 if ( extraPoolConfig != null && extraPoolConfig . AddressType != BitcoinAddressType . Legacy )
479- logger . Info ( ( ) => $ "Interpreting pool address { poolConfig . Address } as type { extraPoolConfig ? . AddressType . ToString ( ) } ") ;
479+ logger . Info ( ( ) => $ "Interpreting pool address { poolConfig . Address } as type { extraPoolConfig ? . AddressType . ToString ( ) } ") ;
480480
481481 poolAddressDestination = AddressToDestination ( poolConfig . Address , extraPoolConfig ? . AddressType ) ;
482482 }
@@ -488,8 +488,8 @@ protected override async Task PostStartInitAsync(CancellationToken ct)
488488 if ( clusterConfig . PaymentProcessing ? . Enabled == true && poolConfig . PaymentProcessing ? . Enabled == true )
489489 {
490490 // ensure pool owns wallet
491- if ( validateAddressResponse is { IsMine : false } && addressInfoResponse is { IsMine : false } )
492- logger . Warn ( ( ) => $ "Daemon does not own pool-address '{ poolConfig . Address } '") ;
491+ if ( validateAddressResponse is { IsMine : false } && addressInfoResponse is { IsMine : false } )
492+ logger . Warn ( ( ) => $ "Daemon does not own pool-address '{ poolConfig . Address } '") ;
493493 }
494494
495495 // update stats
@@ -512,7 +512,7 @@ protected override async Task PostStartInitAsync(CancellationToken ct)
512512 // Periodically update network stats
513513 Observable . Interval ( TimeSpan . FromMinutes ( 10 ) )
514514 . Select ( _ => Observable . FromAsync ( ( ) =>
515- Guard ( ( ) => ! hasLegacyDaemon ? UpdateNetworkStatsAsync ( ct ) : UpdateNetworkStatsLegacyAsync ( ct ) ,
515+ Guard ( ( ) => ! hasLegacyDaemon ? UpdateNetworkStatsAsync ( ct ) : UpdateNetworkStatsLegacyAsync ( ct ) ,
516516 ex => logger . Error ( ex ) ) ) )
517517 . Concat ( )
518518 . Subscribe ( ) ;
@@ -573,7 +573,7 @@ public virtual async Task<bool> ValidateAddressAsync(string address, Cancellatio
573573
574574 var result = await rpc . ExecuteAsync < ValidateAddressResponse > ( logger , BitcoinCommands . ValidateAddress , ct , new [ ] { address } ) ;
575575
576- return result . Response is { IsValid : true } ;
576+ return result . Response is { IsValid : true } ;
577577 }
578578
579579 #endregion // API-Surface
0 commit comments