-
Notifications
You must be signed in to change notification settings - Fork 182
/
schema.go
100 lines (85 loc) · 2.5 KB
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package trace
const (
//----- DeliverTx
DeliverTx = "DeliverTx"
TxDecoder = "TxDecoder"
//----- RunTx details
ValTxMsgs = "valTxMsgs"
RunAnte = "RunAnte"
RunMsg = "RunMsg"
Refund = "refund"
EvmHandler = "EvmHandler"
//------ RunAnte details
CacheTxContext = "cacheTxContext"
AnteChain = "AnteChain"
AnteOther = "AnteOther"
CacheStoreWrite = "cacheStoreWrite"
//----- RunMsgs details
//----- handler details
ParseChainID = "ParseChainID"
VerifySig = "VerifySig"
Txhash = "txhash"
SaveTx = "SaveTx"
TransitionDb = "TransitionDb"
Bloomfilter = "Bloomfilter"
EmitEvents = "EmitEvents"
HandlerDefer = "handler_defer"
)
const (
GasUsed = "GasUsed"
Produce = "Produce"
RunTx = "RunTx"
Height = "Height"
Tx = "Tx"
BlockSize = "BlockSize"
Elapsed = "Elapsed"
CommitRound = "CommitRound"
Round = "Round"
BlockParts = "BlockParts"
Evm = "Evm"
Iavl = "Iavl"
FlatKV = "FlatKV"
//RecvBlock = "RecvBlock"
First2LastPart = "First2LastPart"
SigCacheRatio = "SigCacheRatio"
DeliverTxs = "DeliverTxs"
EvmHandlerDetail = "EvmHandlerDetail"
RunAnteDetail = "RunAnteDetail"
AnteChainDetail = "AnteChainDetail"
Delta = "Delta"
InvalidTxs = "InvalidTxs"
Abci = "abci"
SaveResp = "saveResp"
Persist = "persist"
MempoolUpdate = "mpUpdate"
SaveState = "saveState"
ApplyBlock = "ApplyBlock"
Consensus = "Consensus"
LastBlockTime = "LastBlockTime"
TimeoutInterval = "TimeoutInterval"
MempoolCheckTxCnt = "CheckTx"
MempoolTxsCnt = "MempoolTxs"
CompressBlock = "Compress"
UncompressBlock = "Uncompress"
Prerun = "Prerun"
IavlRuntime = "IavlRuntime"
BlockPartsP2P = "BlockPartsP2P"
)
const (
READ = 1
WRITE = 2
EVMALL = 3
UNKNOWN_TYPE = 4
EVM_FORMAT = "read<%dms>, write<%dms>, execute<%dms>"
EVMCORE = "evmcore"
)
var (
STATEDB_WRITE = []string{"AddBalance", "SubBalance", "SetNonce", "SetState", "SetCode", "AddLog",
"AddPreimage", "AddRefund", "SubRefund", "AddAddressToAccessList", "AddSlotToAccessList",
"PrepareAccessList", "AddressInAccessList", "Suicide", "CreateAccount", "ForEachStorage"}
STATEDB_READ = []string{"SlotInAccessList", "GetBalance", "GetNonce", "GetCode", "GetCodeSize",
"GetCodeHash", "GetState", "GetCommittedState", "GetRefund",
"HasSuicided", "Snapshot", "RevertToSnapshot", "Empty", "Exist"}
EVM_OPER = []string{EVMCORE}
dbOper *DbRecord
)