Add some blockchain RPC handlers and DB fetching routines #55

Merged
moodyjon merged 15 commits from blockchain_rpc1 into master 2022-09-14 17:23:35 +02:00
Showing only changes of commit 86a287ec69 - Show all commits

View file

@ -39,10 +39,10 @@ func TestUDPPing(t *testing.T) {
toPort := "50001" toPort := "50001"
pong, err := server.UDPPing(toAddr, toPort) pong, err := server.UDPPing(toAddr, toPort)
gotCountry := pong.DecodeCountry()
if err != nil { if err != nil {
log.Println(err) t.Skipf("ping failed: %v", err)
} }
gotCountry := pong.DecodeCountry()
res, err := exec.Command("dig", "@resolver4.opendns.com", "myip.opendns.com", "+short").Output() res, err := exec.Command("dig", "@resolver4.opendns.com", "myip.opendns.com", "+short").Output()