-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State root mismatches (both calibnet and mainnet) #2958
Comments
I can reproduce it. |
Uploaded a snapshot that contains the correct state tree. It makes it possible to find the diff: https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/debug/632400_2023_06_09T08_13_00Z.car.zst |
Will upload temporary snapshots from Lotus to avoid breaking our CI setup. |
State diff: Address f021018 changed:
ActorState(ActorState { code: Cid(bafk2bzaceabftmhejmvjvpzmbsv4cvaew6v5juj5sqtq7cfijugwsnahnsy5w)
- state: Cid(bafy2bzacea4vsbsolom2ykhdzcfoo2cl7pgngjcru72s43g6fakchtraeqmkc)
+ state: Cid(bafy2bzacedqrvubrbmmy3qtuxstgki5wvahckhdlncj54wooftcm5egdddxki)
sequence: 0
balance: TokenAmount(0.0)
delegated_address: Some(snip)
V11(State { bytecode: Cid(bafk2bzacec5zpp6524sbdvmxsdw2b2n3am2ohxaxjmtpplyspehkj2ywn7pr4)
bytecode_hash: BytecodeHash(4052AD80BC433CB6B163155FC7E49A838869EAFB5EC4E705450BEFAC2E2F2D88)
- contract_state: Cid(bafy2bzacea7t237lqfedxo5goabrgtvq5hhfhtqjelcjh7jghueeafkxk4z6e)
+ contract_state: Cid(bafy2bzacec763brjalwj3w562mq5kfgpygtnzoa3xkyz75gb6qkjbfzofy5so)
nonce: 1
tombstone: None })
Address f099 changed:
ActorState(ActorState { code: Cid(bafk2bzacebor5mnjnsav34cmm5pcd3dy4wubbv4wtcrvba7depy3sct7ie4sy)
state: Cid(bafy2bzacedpuk5ggwoq3s2wixsyjjnexpsjstdlyntio76vs2lt2jvy3o6mau)
sequence: 0
- balance: TokenAmount(8097143.09617497843333088)
+ balance: TokenAmount(8097143.09617497843190788)
delegated_address: None })
V11(State { address: Address { payload: ID(99) } })
Address f019260 changed:
{
"code": {
"/": "bafk2bzacedrbpvjvyzif2cjxosm4pliyq2m6wzndvrg7r6hzdhixplzvgubbw"
}
"sequence": 4
- "balance": "89.950857469415656869"
+ "balance": "89.950857469417079869"
"state": []
} Looks like a problem with the way we handle eth contracts. |
Nice finding. Maybe related to #2916? |
I hope it is related. If it's the same bug then we only have to fix it once. :) |
Another mismatch at epoch 643586. |
I will have a look. |
Describe the bug
Encountering some state mismatch while validating tipsets. This happens both on calibnet and mainnet.
To Reproduce
The following command will trigger the bug:
forest --no-gc --chain calibnet\ --encrypt-keystore false \ --import-snapshot https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/debug/filecoin_snapshot_calibnet_2023-06-13_height_643680.car.zst \ --height=643585
Failure epochs
Log output
Environment:
forest_snapshot_calibnet_2023-06-09_height_632266.car
The text was updated successfully, but these errors were encountered: