Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
change mainnet seeds (#2124)
Browse files Browse the repository at this point in the history
Co-authored-by: yzb@example.cn <yzb@example.cn>
  • Loading branch information
yzb and yzb@example.cn authored Oct 9, 2022
1 parent 2c56a81 commit 8b7177e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ node_alias = ""
var mainNetConfigTmpl = `chain_id = "mainnet"
[p2p]
laddr = "tcp://0.0.0.0:46657"
seeds = "47.100.136.63:46657,139.224.47.22:46657,47.100.93.145:46657,101.132.98.230:46657,47.75.107.234:46657"
seeds = "139.196.106.51:46657,139.224.235.249:46657,139.224.234.206:46657,106.15.207.204:46657,8.212.14.144:46657"
`

var testNetConfigTmpl = `chain_id = "wisdom"
Expand Down
4 changes: 2 additions & 2 deletions protocol/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
ErrDustTx = errors.New("transaction is dust tx")
)

var BlockUtxo = map[string]bool{
var blackUtxo = map[string]bool{
"6f083763575172bba322b149696ebd178b521057671e701500fa9e2ad69828b1": true,
"e26a8bcfcfd973255e2f286e1e89144d4ff8ebd4c41fb62f83569cbe2b96bbd7": true,
"559371bfe33ec069924b44b766a72bb4ce6b9271abebb39ad256d9ca9f7cbc85": true,
Expand Down Expand Up @@ -253,7 +253,7 @@ func (tp *TxPool) processTransaction(tx *types.Tx, height, fee uint64) (bool, er
defer tp.mtx.Unlock()

for _, hash := range tx.SpentOutputIDs {
if BlockUtxo[hash.String()] {
if blackUtxo[hash.String()] {
log.WithFields(log.Fields{"module": logModule, "utxo": hash.String()}).Warn("black utxo")
return false, errors.New("black utxo")
}
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (

var (
// The full version string
Version = "2.0.6"
Version = "2.0.7"
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
GitCommit string
Status *UpdateStatus
Expand Down

0 comments on commit 8b7177e

Please sign in to comment.