mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
all: fix goimports warning (#1903)
This commit is contained in:
parent
ca9e69c924
commit
267222d4a5
3 changed files with 27 additions and 27 deletions
|
|
@ -31,15 +31,15 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
HashLength = 32
|
HashLength = 32
|
||||||
AddressLength = 20
|
AddressLength = 20
|
||||||
VoteMethod = "0x6dd7d8ea"
|
VoteMethod = "0x6dd7d8ea"
|
||||||
UnvoteMethod = "0x02aa9be2"
|
UnvoteMethod = "0x02aa9be2"
|
||||||
ProposeMethod = "0x01267951"
|
ProposeMethod = "0x01267951"
|
||||||
ResignMethod = "0xae6e43f5"
|
ResignMethod = "0xae6e43f5"
|
||||||
SignMethod = "0xe341eaa4"
|
SignMethod = "0xe341eaa4"
|
||||||
XDCXApplyMethod = "0xc6b32f34"
|
XDCXApplyMethod = "0xc6b32f34"
|
||||||
XDCZApplyMethod = "0xc6b32f34"
|
XDCZApplyMethod = "0xc6b32f34"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -334,19 +334,19 @@ func (args *TransactionArgs) ToMessage(b AccountBackend, baseFee *big.Int, skipN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &core.Message{
|
return &core.Message{
|
||||||
From: addr,
|
From: addr,
|
||||||
To: args.To,
|
To: args.To,
|
||||||
Value: (*big.Int)(args.Value),
|
Value: (*big.Int)(args.Value),
|
||||||
Nonce: uint64(*args.Nonce),
|
Nonce: uint64(*args.Nonce),
|
||||||
GasLimit: uint64(*args.Gas),
|
GasLimit: uint64(*args.Gas),
|
||||||
GasPrice: gasPrice,
|
GasPrice: gasPrice,
|
||||||
GasFeeCap: gasFeeCap,
|
GasFeeCap: gasFeeCap,
|
||||||
GasTipCap: gasTipCap,
|
GasTipCap: gasTipCap,
|
||||||
Data: args.data(),
|
Data: args.data(),
|
||||||
AccessList: accessList,
|
AccessList: accessList,
|
||||||
SetCodeAuthorizations: args.AuthorizationList,
|
SetCodeAuthorizations: args.AuthorizationList,
|
||||||
SkipNonceChecks: skipNonceCheck,
|
SkipNonceChecks: skipNonceCheck,
|
||||||
SkipFromEOACheck: skipEoACheck,
|
SkipFromEOACheck: skipEoACheck,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,11 +58,11 @@ var (
|
||||||
nodeDBVersionKey = []byte("version") // Version of the database to flush if changes
|
nodeDBVersionKey = []byte("version") // Version of the database to flush if changes
|
||||||
nodeDBItemPrefix = []byte("n:") // Identifier to prefix node entries with
|
nodeDBItemPrefix = []byte("n:") // Identifier to prefix node entries with
|
||||||
|
|
||||||
nodeDBDiscoverRoot = ":discover"
|
nodeDBDiscoverRoot = ":discover"
|
||||||
nodeDBDiscoverPing = nodeDBDiscoverRoot + ":lastping"
|
nodeDBDiscoverPing = nodeDBDiscoverRoot + ":lastping"
|
||||||
nodeDBDiscoverPong = nodeDBDiscoverRoot + ":lastpong"
|
nodeDBDiscoverPong = nodeDBDiscoverRoot + ":lastpong"
|
||||||
nodeDBDiscoverFindFails = nodeDBDiscoverRoot + ":findfail"
|
nodeDBDiscoverFindFails = nodeDBDiscoverRoot + ":findfail"
|
||||||
nodeDBTopicRegTickets = ":tickets"
|
nodeDBTopicRegTickets = ":tickets"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newNodeDB creates a new node database for storing and retrieving infos about
|
// newNodeDB creates a new node database for storing and retrieving infos about
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue