Add iota for incremental data

This commit is contained in:
moein 2023-08-25 05:38:26 +04:30
parent 1a2135044c
commit 7b6be31903
3 changed files with 13 additions and 13 deletions

View file

@ -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"
)

View file

@ -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

View file

@ -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