Skip to content

Commit

Permalink
Fix network magic bytes for TestNet4
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Dec 21, 2024
1 parent cd29767 commit 8167178
Show file tree
Hide file tree
Showing 14 changed files with 612 additions and 67 deletions.
2 changes: 1 addition & 1 deletion configs/mainnet-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"Seeder1": "btccash-seeder.bitcoinunlimited.info",
"Seeder2": "seed.bch.loping.net",
"Seeder3": "dnsseed.electroncash.de"
}
}
8 changes: 2 additions & 6 deletions configs/mainnet-filtered.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@
"Seeder1": "btccash-seeder.bitcoinunlimited.info",
"Seeder2": "seed.bch.loping.net",
"Seeder3": "dnsseed.electroncash.de",
"ServiceFilter": [
"NodeNetwork",
"NodeCF",
"NodeBloom"
]
}
"ServiceFilter": ["NodeNetwork", "NodeCF", "NodeBloom"]
}
11 changes: 3 additions & 8 deletions configs/mainnet-node-cf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
"Seeder1": "btccash-seeder.bitcoinunlimited.info",
"Seeder2": "seed.bch.loping.net",
"Seeder3": "dnsseed.electroncash.de",
"ServiceFilter": [
"NodeNetwork",
"NodeCF"
],
"UserAgentFilter": [
"bchd:0.20.0"
]
}
"ServiceFilter": ["NodeNetwork", "NodeCF"],
"UserAgentFilter": ["bchd:0.20.0"]
}
12 changes: 3 additions & 9 deletions configs/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
"Seeder1": "btccash-seeder.bitcoinunlimited.info",
"Seeder2": "seed.bch.loping.net",
"Seeder3": "dnsseed.electroncash.de",
"InitialIPs": [
"127.0.0.1"
],
"ServiceFilter": [
"NodeNetwork",
"NodeCF",
"NodeBloom"
]
}
"InitialIPs": ["127.0.0.1"],
"ServiceFilter": ["NodeNetwork", "NodeCF", "NodeBloom"]
}
2 changes: 1 addition & 1 deletion configs/testnet-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"TTL": 600,
"Seeder1": "seed.tbch.loping.net",
"Seeder2": "testnet-seed-bch.bitcoinforks.org"
}
}
8 changes: 2 additions & 6 deletions configs/testnet-filtered.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@
"TTL": 600,
"Seeder1": "seed.tbch.loping.net",
"Seeder2": "testnet-seed-bch.bitcoinforks.org",
"ServiceFilter": [
"NodeNetwork",
"NodeCF",
"NodeBloom"
]
}
"ServiceFilter": ["NodeNetwork", "NodeCF", "NodeBloom"]
}
11 changes: 3 additions & 8 deletions configs/testnet-node-cf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
"TTL": 600,
"Seeder1": "seed.tbch.loping.net",
"Seeder2": "testnet-seed-bch.bitcoinforks.org",
"ServiceFilter": [
"NodeNetwork",
"NodeCF"
],
"UserAgentFilter": [
"bchd:0.20.0"
]
}
"ServiceFilter": ["NodeNetwork", "NodeCF"],
"UserAgentFilter": ["bchd:0.20.0"]
}
6 changes: 2 additions & 4 deletions configs/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
"TTL": 300,
"Seeder1": "seed.tbch.loping.net",
"Seeder2": "testnet-seed-bch.bitcoinforks.org",
"ServiceFilter": [
"NodeNetwork"
]
}
"ServiceFilter": ["NodeNetwork"]
}
4 changes: 2 additions & 2 deletions configs/testnet4-all.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"Name": "Testnet4 All",
"Desc": "Bitcoin Cash Testnet4 - All",
"Id": "0xafdab7e2",
"Id": "0xe2b7daaf",
"Port": 28333,
"Pver": 70016,
"DNSName": "testnet4-seed.bchd.cash",
"TTL": 600,
"Seeder1": "testnet4-seed-bch.toom.im",
"Seeder2": "seed.tbch4.loping.net",
"Seeder3": "testnet4-seed.flowee.cash"
}
}
10 changes: 3 additions & 7 deletions configs/testnet4-filtered.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"Name": "Testnet4 Filtered",
"Desc": "Bitcoin Cash Testnet4 - Filtered",
"Id": "0xafdab7e2",
"Id": "0xe2b7daaf",
"Port": 28333,
"Pver": 70016,
"DNSName": "x105.testnet4-seed.bchd.cash",
"TTL": 600,
"Seeder1": "testnet4-seed-bch.toom.im",
"Seeder2": "seed.tbch4.loping.net",
"Seeder3": "testnet4-seed.flowee.cash",
"ServiceFilter": [
"NodeNetwork",
"NodeCF",
"NodeBloom"
]
}
"ServiceFilter": ["NodeNetwork", "NodeCF", "NodeBloom"]
}
13 changes: 4 additions & 9 deletions configs/testnet4-node-cf.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
{
"Name": "Testnet4 Node CF",
"Desc": "Bitcoin Cash Testnet4 - NodeCF",
"Id": "0xafdab7e2",
"Id": "0xe2b7daaf",
"Port": 28333,
"Pver": 70016,
"DNSName": "x101.testnet4-seed.bchd.cash",
"TTL": 600,
"Seeder1": "testnet4-seed-bch.toom.im",
"Seeder2": "seed.tbch4.loping.net",
"Seeder3": "testnet4-seed.flowee.cash",
"ServiceFilter": [
"NodeNetwork",
"NodeCF"
],
"UserAgentFilter": [
"bchd:0.20.0"
]
}
"ServiceFilter": ["NodeNetwork", "NodeCF"],
"UserAgentFilter": ["bchd:0.20.0"]
}
8 changes: 3 additions & 5 deletions configs/testnet4.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"Name": "Testnet4",
"Desc": "Bitcoin Cash Testnet4",
"Id": "0xafdab7e2",
"Id": "0xe2b7daaf",
"Port": 28333,
"Pver": 70016,
"DNSName": "seeder.example.com",
"TTL": 300,
"Seeder1": "testnet4-seed-bch.toom.im",
"Seeder2": "seed.tbch4.loping.net",
"Seeder3": "testnet4-seed.flowee.cash",
"ServiceFilter": [
"NodeNetwork"
]
}
"ServiceFilter": ["NodeNetwork"]
}
33 changes: 32 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,42 @@ module github.com/gcash/dnsseeder
go 1.23.4

require (
github.com/gcash/bchd v0.20.0-rc1
github.com/gcash/bchd v0.20.0-rc1.0.20241221031821-7c58c4369273
github.com/gcash/bchutil v0.0.0-20241220024231-3d67040d3361
github.com/miekg/dns v1.1.62
)

require (
github.com/aead/siphash v1.0.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bluele/gcache v0.0.2 // indirect
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
github.com/btcsuite/goleveldb v1.0.0 // indirect
github.com/btcsuite/snappy-go v1.0.0 // indirect
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
github.com/btcsuite/winsvc v1.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dchest/siphash v1.2.3 // indirect
github.com/desertbit/timer v1.0.1 // indirect
github.com/gcash/bchlog v0.0.0-20180913005452-b4f036f92fa6 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/gorilla/mux v1.8.1 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect
github.com/improbable-eng/grpc-web v0.15.0 // indirect
github.com/jessevdk/go-flags v1.6.1 // indirect
github.com/jrick/logrotate v1.1.2 // indirect
github.com/kkdai/bstream v1.0.0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_golang v1.20.5 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.61.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/simpleledgerinc/goslp v0.0.0-20210423125905-3c2e5f2ef33f // indirect
github.com/zquestz/grab v0.0.0-20190224022517-abcee96e61b1 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/mod v0.22.0 // indirect
Expand All @@ -21,5 +47,10 @@ require (
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/tools v0.28.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241219192143-6b3ec007d9bb // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241219192143-6b3ec007d9bb // indirect
google.golang.org/grpc v1.69.2 // indirect
google.golang.org/protobuf v1.36.0 // indirect
lukechampine.com/uint128 v1.3.0 // indirect
nhooyr.io/websocket v1.8.17 // indirect
)
Loading

0 comments on commit 8167178

Please sign in to comment.