Skip to content

Commit

Permalink
Update STRAXSidechainRegistrationScript.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
StratisIain authored and fassadlr committed Dec 21, 2020
1 parent dd9141a commit 2a359ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/STRAXSidechainRegistrationScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ Switch ( $registerMasternode )
walletPassword = $cirrusWalletPassword
walletAccount = "account 0"
}
$register = Invoke-WebRequest -Uri http://localhost:$API/api/Collateral/joinfederation -Body $registerBody -ContentType "application/json-patch+json" -UseBasicParsing -Method Post | Select
$register = Invoke-WebRequest -Uri http://localhost:$API/api/Collateral/joinfederation -Body $registerBody -ContentType "application/json-patch+json" -UseBasicParsing -Method Post

if ( ($register.content | ConvertFrom-Json | Select-Object -ExpandProperty minerPublicKey) -match '^.{66,66}$' )
if ( ($register.content | ConvertFrom-Json -ErrorAction SilentlyContinue | Select-Object -ExpandProperty minerPublicKey) -match '^.{66,66}$' )
{
Write-Host (Get-TimeStamp) "Your Masternode Public Key is: " ($register.content | ConvertFrom-Json | Select-Object -ExpandProperty minerPublicKey) -ForegroundColor Cyan
Write-Host (Get-TimeStamp) "SUCCESS: Your registration was succesful!! Please follow the STRAX Sidechain Masternode Setup Guide!" -ForegroundColor Green
Expand Down

0 comments on commit 2a359ee

Please sign in to comment.