mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +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 (
|
||||
HashLength = 32
|
||||
AddressLength = 20
|
||||
VoteMethod = "0x6dd7d8ea"
|
||||
UnvoteMethod = "0x02aa9be2"
|
||||
ProposeMethod = "0x01267951"
|
||||
ResignMethod = "0xae6e43f5"
|
||||
SignMethod = "0xe341eaa4"
|
||||
XDCXApplyMethod = "0xc6b32f34"
|
||||
XDCZApplyMethod = "0xc6b32f34"
|
||||
HashLength = 32
|
||||
AddressLength = 20
|
||||
VoteMethod = "0x6dd7d8ea"
|
||||
UnvoteMethod = "0x02aa9be2"
|
||||
ProposeMethod = "0x01267951"
|
||||
ResignMethod = "0xae6e43f5"
|
||||
SignMethod = "0xe341eaa4"
|
||||
XDCXApplyMethod = "0xc6b32f34"
|
||||
XDCZApplyMethod = "0xc6b32f34"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -334,19 +334,19 @@ func (args *TransactionArgs) ToMessage(b AccountBackend, baseFee *big.Int, skipN
|
|||
}
|
||||
}
|
||||
return &core.Message{
|
||||
From: addr,
|
||||
To: args.To,
|
||||
Value: (*big.Int)(args.Value),
|
||||
Nonce: uint64(*args.Nonce),
|
||||
GasLimit: uint64(*args.Gas),
|
||||
GasPrice: gasPrice,
|
||||
GasFeeCap: gasFeeCap,
|
||||
GasTipCap: gasTipCap,
|
||||
Data: args.data(),
|
||||
AccessList: accessList,
|
||||
SetCodeAuthorizations: args.AuthorizationList,
|
||||
SkipNonceChecks: skipNonceCheck,
|
||||
SkipFromEOACheck: skipEoACheck,
|
||||
From: addr,
|
||||
To: args.To,
|
||||
Value: (*big.Int)(args.Value),
|
||||
Nonce: uint64(*args.Nonce),
|
||||
GasLimit: uint64(*args.Gas),
|
||||
GasPrice: gasPrice,
|
||||
GasFeeCap: gasFeeCap,
|
||||
GasTipCap: gasTipCap,
|
||||
Data: args.data(),
|
||||
AccessList: accessList,
|
||||
SetCodeAuthorizations: args.AuthorizationList,
|
||||
SkipNonceChecks: skipNonceCheck,
|
||||
SkipFromEOACheck: skipEoACheck,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,11 +58,11 @@ var (
|
|||
nodeDBVersionKey = []byte("version") // Version of the database to flush if changes
|
||||
nodeDBItemPrefix = []byte("n:") // Identifier to prefix node entries with
|
||||
|
||||
nodeDBDiscoverRoot = ":discover"
|
||||
nodeDBDiscoverPing = nodeDBDiscoverRoot + ":lastping"
|
||||
nodeDBDiscoverPong = nodeDBDiscoverRoot + ":lastpong"
|
||||
nodeDBDiscoverFindFails = nodeDBDiscoverRoot + ":findfail"
|
||||
nodeDBTopicRegTickets = ":tickets"
|
||||
nodeDBDiscoverRoot = ":discover"
|
||||
nodeDBDiscoverPing = nodeDBDiscoverRoot + ":lastping"
|
||||
nodeDBDiscoverPong = nodeDBDiscoverRoot + ":lastpong"
|
||||
nodeDBDiscoverFindFails = nodeDBDiscoverRoot + ":findfail"
|
||||
nodeDBTopicRegTickets = ":tickets"
|
||||
)
|
||||
|
||||
// newNodeDB creates a new node database for storing and retrieving infos about
|
||||
|
|
|
|||
Loading…
Reference in a new issue