mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Add iota for incremental data
This commit is contained in:
parent
1a2135044c
commit
7b6be31903
3 changed files with 13 additions and 13 deletions
|
|
@ -39,17 +39,16 @@ import (
|
|||
"github.com/ethereum/go-ethereum/params"
|
||||
"github.com/ethereum/go-ethereum/rlp"
|
||||
"github.com/ethereum/go-ethereum/tests"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
ErrorEVM = 2
|
||||
ErrorConfig = 3
|
||||
ErrorMissingBlockhash = 4
|
||||
ErrorEVM = iota + 2
|
||||
ErrorConfig
|
||||
ErrorMissingBlockhash
|
||||
|
||||
ErrorJson = 10
|
||||
ErrorIO = 11
|
||||
ErrorRlp = 12
|
||||
ErrorJson
|
||||
ErrorIO
|
||||
ErrorRlp
|
||||
|
||||
stdinSelector = "stdin"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ import (
|
|||
"github.com/ethereum/go-ethereum/log"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
"github.com/ethereum/go-ethereum/rlp"
|
||||
"github.com/urfave/cli/v2"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -387,9 +387,10 @@ type exportHeader struct {
|
|||
}
|
||||
|
||||
const exportMagic = "gethdbdump"
|
||||
|
||||
const (
|
||||
OpBatchAdd = 0
|
||||
OpBatchDel = 1
|
||||
OpBatchAdd = iota
|
||||
OpBatchDel
|
||||
)
|
||||
|
||||
// ImportLDBData imports a batch of snapshot data into the database
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ import (
|
|||
|
||||
// Constants to match up protocol versions and messages
|
||||
const (
|
||||
ETH66 = 66
|
||||
ETH67 = 67
|
||||
ETH68 = 68
|
||||
ETH66 = iota + 66
|
||||
ETH67
|
||||
ETH68
|
||||
)
|
||||
|
||||
// ProtocolName is the official short name of the `eth` protocol used during
|
||||
|
|
|
|||
Loading…
Reference in a new issue