Compare commits

..

93 Commits

Author SHA1 Message Date
joeycli
facbe6a886 chore: add mgasps metrics 2024-08-29 20:35:58 +08:00
joeycli
84da730eed chore: add pprof service 2024-08-29 20:35:36 +08:00
joeycli
85a6b17ab0 chore: add reopen same tree error debug info 2024-08-22 15:05:42 +08:00
joeycli
8db789b2c0 fix: update trie error 2024-08-22 14:14:29 +08:00
joeycli
36044b05f3 chore: add open state version 2024-08-21 16:39:28 +08:00
joeycli
d5e38ad81e chore: adjust log confidition 2024-08-21 14:23:51 +08:00
joeycli
d5a438a06d chore: add diff and disk version log 2024-08-20 18:02:45 +08:00
Fynn
b585984e32 fix: remove enable hash check 2024-08-20 11:23:26 +08:00
joeycli
a1d4b06707 feat: check ca changeable 2024-08-20 09:01:18 +08:00
joeycli
ea76d5f359 chore: add debug inof for get trie version mismatch error 2024-08-20 08:24:57 +08:00
joeycli
b8fa4761b8 fix: get ca trie 2024-08-20 08:02:58 +08:00
joeycli
3ad7c4e63b fix: panic for updating code 2024-08-20 07:44:17 +08:00
joeycli
74ab9ab248 fix: changte the confidition for open storage tree 2024-08-20 07:38:00 +08:00
joeycli
9c239db9d9 fix: compare func 2024-08-19 16:52:42 +08:00
joeycli
d3854b41ec fix: compare funx 2024-08-19 16:51:13 +08:00
joeycli
30b371daf2 chore: compatable empty hash 2024-08-19 16:45:22 +08:00
joeycli
4764fdb47f fix: the timing release debug state instance 2024-08-19 16:23:01 +08:00
joeycli
fa7a43a2df fix: add calc hash point 2024-08-19 16:14:14 +08:00
joeycli
1a40f79ade fix: set path mode breakpoint 2024-08-19 16:08:56 +08:00
joeycli
3ad4700907 fix: diff debug state error 2024-08-19 16:04:41 +08:00
joeycli
f724941948 fix: add protection for debug hash state 2024-08-19 15:33:06 +08:00
joeycli
ef3f9dfaa7 fix: repeated cmd error 2024-08-19 15:11:27 +08:00
joeycli
aa9d5182c1 fix: panic bug 2024-08-19 15:05:55 +08:00
joeycli
a0daf107f9 fix: genesis init panic 2024-08-19 14:58:54 +08:00
joeycli
55cdcfaff3 fix: repeat cmd error 2024-08-19 14:52:06 +08:00
joeycli
7d5e6ce2d7 feat: add version and hash state diff system 2024-08-19 14:08:40 +08:00
joeycli
1cbdf0a4c9 feat: add hash state db debug system 2024-08-19 12:55:24 +08:00
joeycli
997d7b5bba chore: delete debug log 2024-08-18 16:50:32 +08:00
joeycli
90aa2e137c fix: change pebble to default db 2024-08-18 16:45:25 +08:00
joeycli
e940e28f6c fix: access nil pointer 2024-08-18 16:39:25 +08:00
joeycli
23c60a38a4 feat: add version state debug system 2024-08-18 16:21:06 +08:00
joeycli
f67f494346 chore: add 373559 debug breakpoint 2024-08-16 22:28:44 +08:00
joeycli
84767d1957 chore: add update storage debug info 2024-08-16 21:17:28 +08:00
joeycli
bf808915f0 chore: add update storage debug info 2024-08-16 21:10:46 +08:00
joeycli
b80d78701a chore: add update storage debug info 2024-08-16 21:04:43 +08:00
joeycli
3c4b452ee2 fix: chang condition for ca 2024-08-16 20:45:37 +08:00
joeycli
8197064e91 fix: chang condition for ca 2024-08-16 20:30:18 +08:00
joeycli
90de1d7ff8 fix: version mismatch that add contract balance without update storage tree 2024-08-16 20:16:01 +08:00
joeycli
77dea68afd chore: add detete key debug log 2024-08-16 16:51:10 +08:00
joeycli
9d20658f8d chore: debug 24611 2024-08-16 14:59:57 +08:00
joeycli
dc510033c0 feat: return version for repeat search account tree 2024-08-16 14:43:23 +08:00
joeycli
7bce07abdf chore: adjust state reset 2024-08-16 14:08:55 +08:00
joeycli
2e4ec39e52 chore: add owner and hash log 2024-08-15 17:26:40 +08:00
joeycli
0a901183b9 chore: delete part log 2024-08-15 16:53:16 +08:00
joeycli
2e38d0662c chore: change panic to log error 2024-08-15 16:09:37 +08:00
joeycli
ac2d1a8ada chore: add versa db error log 2024-08-15 15:46:22 +08:00
joeycli
c6d8d6355d fix: get code error 2024-08-15 15:13:21 +08:00
joeycli
7462078caa chore: add system tx log 2024-08-15 14:47:54 +08:00
joeycli
cf04af0cc1 chore: add tx execute log 2024-08-15 14:25:34 +08:00
joeycli
dec27d1b52 fix: add address check for get versa tree 2024-08-15 12:06:24 +08:00
joeycli
bbef39738d chore:add tree get debug info 2024-08-15 09:54:18 +08:00
joeycli
6dfcbc6519 fix lint error 2024-08-14 17:10:35 +08:00
joeycli
42b72feed1 chore: add debug state after tx execute 2024-08-14 16:49:02 +08:00
joeycli
8d7ee3aeb6 chore: add parse state obj 2024-08-14 16:32:58 +08:00
joeycli
a3f8c707e6 chore: fix build error 2024-08-14 16:05:21 +08:00
joeycli
bd9c2ae465 chore: add tx hash log 2024-08-14 16:03:14 +08:00
joeycli
023b092e95 chore: delete storage pool 2024-08-14 15:35:04 +08:00
joeycli
0941eb6ccf chore: panic for snap 2024-08-14 15:21:05 +08:00
joeycli
b73a98cd65 chore: forbid prefetcher 2024-08-14 15:02:20 +08:00
joeycli
26d7f62caa chore: forbid prefetcher 2024-08-14 15:00:33 +08:00
joeycli
be0a305251 chore: add delete obj debug info 2024-08-14 14:46:51 +08:00
joeycli
bfe07c5a83 chore: adjust state obj debug info 2024-08-14 14:33:31 +08:00
joeycli
412c5ee791 chore: add state obj debug info 2024-08-14 12:03:27 +08:00
joeycli
3a70b35ea2 chore: dadd debug log for tx diff 2024-08-14 11:10:51 +08:00
joeycli
f284358f8f chore: delete redundant code 2024-08-14 09:32:57 +08:00
joeycli
5b4e00c905 fix: decode storage val 2024-08-13 20:35:17 +08:00
joeycli
c572535693 chore: add reset panic 2024-08-13 20:25:33 +08:00
joeycli
324e4a4af7 chore: add panic log 2024-08-13 20:07:17 +08:00
joeycli
58dabc990e chore: add apply tx debug log 2024-08-13 20:03:20 +08:00
joeycli
2f0f91dbf8 chore: delete debug log 2024-08-13 18:21:32 +08:00
joeycli
657eced3b7 chore: delete panic code 2024-08-13 18:02:33 +08:00
joeycli
f69ff95e77 fix: blockchain stateat use rw state 2024-08-13 17:54:37 +08:00
joeycli
04e5c1732c chore: add debug panic 2024-08-13 17:36:18 +08:00
joeycli
ec2384aca4 fix: change check from tree root to tree handler 2024-08-13 17:06:23 +08:00
joeycli
83287cec5c chore: add debug log 2024-08-13 16:22:41 +08:00
joeycli
d162a63438 chore: change panic to log 2024-08-13 15:35:02 +08:00
joeycli
b00582cb8a chore: add state info debug log 2024-08-13 15:10:16 +08:00
joeycli
d8c3726154 fix: state object trie expire 2024-08-13 14:26:36 +08:00
joeycli
e8309adedc chore: delete debug print code 2024-08-13 11:05:17 +08:00
joeycli
ed7aa3e3b9 fix: storage tree value encode 2024-08-13 10:57:42 +08:00
joeycli
6188aaec48 chore: add debug print statedb 2024-08-13 10:20:08 +08:00
joeycli
60df2fa712 fix: open strorage trie param error 2024-08-13 08:53:12 +08:00
joeycli
bb167a9af6 chore: add stack debug 2024-08-12 19:35:26 +08:00
joeycli
66bd59013f chore: delete debug code and add log 2024-08-12 18:20:27 +08:00
joeycli
6b7c807e86 chore: add debug code 2024-08-12 18:15:32 +08:00
joeycli
3a34c737dc feat: support has state on statedb and must fullsync under version 2024-08-12 17:58:22 +08:00
joeycli
4635a457c1 feat: add caching db and trie copy 2024-08-12 17:30:21 +08:00
joeycli
e1a2b8e8d6 feat: init genesis 2024-08-12 16:00:06 +08:00
joeycli
6cf5169ce1 feat: add version scheme for startup 2024-08-12 11:46:32 +08:00
joeycli
7f3aac35e4 feat: add mode for new caching db 2024-08-12 11:07:45 +08:00
joeycli
435410f6f3 chore: forbid versiondb rewind 2024-08-12 10:50:49 +08:00
joeycli
d2e5c03965 feat: add version commit 2024-08-12 10:35:13 +08:00
joeycli
41ab497c22 feat: setup versa db 2024-08-09 17:29:47 +08:00
3 changed files with 4 additions and 0 deletions

View File

@@ -361,6 +361,8 @@ func geth(ctx *cli.Context) error {
defer stack.Close() defer stack.Close()
startNode(ctx, stack, backend, false) startNode(ctx, stack, backend, false)
// TODO:: debug code , will be deleted in the future
debug.StartPProf("127.0.0.1:7060", !ctx.IsSet("metrics.addr"))
stack.Wait() stack.Wait()
return nil return nil
} }

View File

@@ -74,6 +74,7 @@ var (
blockInsertMgaspsGauge = metrics.NewRegisteredGauge("chain/insert/mgasps", nil) blockInsertMgaspsGauge = metrics.NewRegisteredGauge("chain/insert/mgasps", nil)
chainInfoGauge = metrics.NewRegisteredGaugeInfo("chain/info", nil) chainInfoGauge = metrics.NewRegisteredGaugeInfo("chain/info", nil)
mGasPsGauge = metrics.NewRegisteredGauge("chain/process/gas", nil)
accountReadTimer = metrics.NewRegisteredTimer("chain/account/reads", nil) accountReadTimer = metrics.NewRegisteredTimer("chain/account/reads", nil)
accountHashTimer = metrics.NewRegisteredTimer("chain/account/hashes", nil) accountHashTimer = metrics.NewRegisteredTimer("chain/account/hashes", nil)

View File

@@ -64,6 +64,7 @@ func (st *insertStats) report(chain []*types.Block, index int, snapDiffItems, sn
"blocks", st.processed, "txs", txs, "blobs", blobs, "mgas", float64(st.usedGas) / 1000000, "blocks", st.processed, "txs", txs, "blobs", blobs, "mgas", float64(st.usedGas) / 1000000,
"elapsed", common.PrettyDuration(elapsed), "mgasps", mgasps, "elapsed", common.PrettyDuration(elapsed), "mgasps", mgasps,
} }
mGasPsGauge.Update(int64(mgasps))
blockInsertMgaspsGauge.Update(int64(mgasps)) blockInsertMgaspsGauge.Update(int64(mgasps))
if timestamp := time.Unix(int64(end.Time()), 0); time.Since(timestamp) > time.Minute { if timestamp := time.Unix(int64(end.Time()), 0); time.Since(timestamp) > time.Minute {
context = append(context, []interface{}{"age", common.PrettyAge(timestamp)}...) context = append(context, []interface{}{"age", common.PrettyAge(timestamp)}...)