aergoio / aergo

aergo blockchain kernel
http://docs.aergo.io
MIT License
214 stars 45 forks source link

refactor state #326

Closed rabbitprincess closed 11 months ago

rabbitprincess commented 11 months ago

What is changed?

remove unnecessary value copy using reflect rename state.V to state.AccountState change to all account balance modify logic must use AccountState separate statedb from state ( it related with experiment/evm_state_wip )

Is there risk of fork?

yes. it need to sync test.

kroggen commented 11 months ago

It appears that state/storage.go was moved to state/statedb/storage.go But it does not appear as a move in the diff

kroggen commented 11 months ago

Wow, you made a lot of changes here It took me more than 1 hour to review it It appears mostly OK Let's see the result of sync test

kslee8282 commented 11 months ago

start sync mainnet Nov 27 05:17:20.608 INF ../go/aergo/cmd/aergosvr/aergosvr.go:98 > AERGO SVR STARTED branch=feature/refactor-state module=asvr revision=8f4e472c

kslee8282 commented 11 months ago

sync success

kroggen commented 11 months ago

Oh wait, you did not answer the question I wrote above @gokch

rabbitprincess commented 11 months ago

Oh wait, you did not answer the question I wrote above @gokch

which question? it seems all resolved.

kroggen commented 11 months ago

There are 2 open.One about the removal of a nil check. Do they not appear to you?

rabbitprincess commented 11 months ago

There are 2 open.One about the removal of a nil check. Do they not appear to you?

this issue seems answered. are they having additional problem not solved?

kroggen commented 11 months ago

This is how it appears to me:

Screenshot 2023-12-03 at 22 41 07

No answer

rabbitprincess commented 11 months ago

i answered this issue. it is no problem

image
kroggen commented 11 months ago

It is marked as pending. This is why it does not appear to others, only to you

But OK, I saw your answers on the image. This can be merged

kroggen commented 11 months ago

Maybe you clicked on "Start Review". Then all the comments are marked as "pending" until your review is finished