Closed rotavele closed 3 years ago
@rotavele Thanks for trying. May you provide more details?
Hi Quan and thanks for the response. I have the same issue with both 0.6.0-rc.3 and 0.7.0-rc.1 that's why I think it's my config and likely not a bug.
@rotavele SFC contract storage doesn't seem to match to your validators list. Here's what I've got for your validators list:
[Lachesis.Net.Genesis.Alloc.Accounts.0xfc00face00000000000000000000000000000000.Storage]
0x0000000000000000000000000000000000000000000000000000000000000000 = "0x000000000000000000000000b366ce2f8d28650fecd27af5e997af49b9bd40c8"
0x0000000000000000000000000000000000000000000000000000000000000022 = "0x0000000000000000000000000000000000000000000000000000000000000007"
0x0000000000000000000000000000000000000000000000000000000000000023 = "0x0000000000000000000000000000000000000000000000000000000000000007"
0x0000000000000000000000000000000000000000000000000000000000000024 = "0x0000000000000000000000000000000000000000003f47814f4c3d029c800000"
0x01f2c8cc48b1d1ef44c947093a2a57af948f443fc9749fc356b63244098b9fc7 = "0x0000000000000000000000000000000000000000000000000000000000000000"
0x01f2c8cc48b1d1ef44c947093a2a57af948f443fc9749fc356b63244098b9fc8 = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0x01f2c8cc48b1d1ef44c947093a2a57af948f443fc9749fc356b63244098b9fcb = "0x00000000000000000000000000000000000000000003f870857a3e0e38000000"
0x01f2c8cc48b1d1ef44c947093a2a57af948f443fc9749fc356b63244098b9fce = "0x000000000000000000000000edb267ea6179c3ef84de7fc8f88111146f441281"
0x0c4d67dbb67a7572b58d516df4fd80fb1e4f0d885008ca323361d1acf015c588 = "0x0000000000000000000000000000000000000000000000000000000000000000"
0x0c4d67dbb67a7572b58d516df4fd80fb1e4f0d885008ca323361d1acf015c589 = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0x0c4d67dbb67a7572b58d516df4fd80fb1e4f0d885008ca323361d1acf015c58c = "0x000000000000000000000000000000000000000000038e8f7792d79767800000"
0x0c4d67dbb67a7572b58d516df4fd80fb1e4f0d885008ca323361d1acf015c58f = "0x000000000000000000000000e03276240af51700ebbcf2cbe839b5b0e109e4d9"
0x0dc725e13ee1891c3ea41fd15d0b4459df7952ac3d7094d0dbb713ec553c9323 = "0x0000000000000000000000000000000000000000000000000000000000000007"
0x156774b33c8bc7cb83eda4cbc43b36c7c9490ff8913c488ccd5132cfc71344eb = "0x0000000000000000000000000000000000000000000000000000000000000000"
0x156774b33c8bc7cb83eda4cbc43b36c7c9490ff8913c488ccd5132cfc71344ec = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0x156774b33c8bc7cb83eda4cbc43b36c7c9490ff8913c488ccd5132cfc71344ef = "0x000000000000000000000000000000000000000000295be96e64066972000000"
0x156774b33c8bc7cb83eda4cbc43b36c7c9490ff8913c488ccd5132cfc71344f2 = "0x00000000000000000000000005c471fc73e6f89a8c277c2a8fe86d6a19142aa9"
0x1ae1eab41a4db68d73559dd6c8b7ac16a4bc819634768486d35edbff05543ac0 = "0x0000000000000000000000000000000000000000000000000000000000000000"
0x1ae1eab41a4db68d73559dd6c8b7ac16a4bc819634768486d35edbff05543ac1 = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0x1ae1eab41a4db68d73559dd6c8b7ac16a4bc819634768486d35edbff05543ac4 = "0x000000000000000000000000000000000000000000034f086f3b33b684000000"
0x1ae1eab41a4db68d73559dd6c8b7ac16a4bc819634768486d35edbff05543ac7 = "0x0000000000000000000000008d02ff9f122db31822cbe3d273fc3b0387e9b9a7"
0x279f122528cc42dc838364a5a956466a7558fc422325ae14472ae7fab3392fda = "0x0000000000000000000000000000000000000000000000000000000000000003"
0x2c5f9a2e204d4db70ad0f9037679e33061b4c51a386497019bee969e16be28d8 = "0x0000000000000000000000000000000000000000000000000000000000000000"
0x2c5f9a2e204d4db70ad0f9037679e33061b4c51a386497019bee969e16be28d9 = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0x2c5f9a2e204d4db70ad0f9037679e33061b4c51a386497019bee969e16be28dc = "0x00000000000000000000000000000000000000000003f870857a3e0e38000000"
0x2c5f9a2e204d4db70ad0f9037679e33061b4c51a386497019bee969e16be28df = "0x0000000000000000000000001794a33ab9ac633a4f98a1b8e5b94abbcfe0162c"
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc = "0x000000000000000000000000fc00beef00000000000000000000000000000101"
0x63b953520ad2617e2f6e76907b112bfbf24e12624b027f255c3b084a255618da = "0x0000000000000000000000000000000000000000000000000000000000000002"
0x6d53c5e7bd965df4670e70c4979879c394f9d3ecbe1ee504dfa8c011f071658d = "0x0000000000000000000000000000000000000000000000000000000000000006"
0x72c2481f9f079f6b880fc4f2613b3e9f3af0b49e016d7dc6f826766cbab6ca02 = "0x0000000000000000000000000000000000000000000000000000000000000001"
0x9a7f38673f2403ea220372c36a5d3212283a73c030ab2696398da5299fc8f97a = "0x0000000000000000000000000000000000000000000000000000000000000000"
0x9a7f38673f2403ea220372c36a5d3212283a73c030ab2696398da5299fc8f97b = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0x9a7f38673f2403ea220372c36a5d3212283a73c030ab2696398da5299fc8f97e = "0x000000000000000000000000000000000000000000036435720315017a800000"
0x9a7f38673f2403ea220372c36a5d3212283a73c030ab2696398da5299fc8f981 = "0x000000000000000000000000c4752ec04d60ab121a7a70092bd262042b87f3d4"
0xa5faa1b8f616617e7b3f278d5c4493c74612035fea07e3305f6fa56c02622da9 = "0x0000000000000000000000000000000000000000000000000000000000000005"
0xaf69f7ec271f94daa686978b3a96acf46914b99f1828a3f8265276d5eab630fb = "0x0000000000000000000000000000000000000000000000000000000000000000"
0xaf69f7ec271f94daa686978b3a96acf46914b99f1828a3f8265276d5eab630fc = "0x000000000000000000000000000000000000000000000000000000005e0580f8"
0xaf69f7ec271f94daa686978b3a96acf46914b99f1828a3f8265276d5eab630ff = "0x00000000000000000000000000000000000000000003b8e97d229a2d54800000"
0xaf69f7ec271f94daa686978b3a96acf46914b99f1828a3f8265276d5eab63102 = "0x000000000000000000000000bea04de0adac4c33d9d39d471840afa7697b0763"
0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 = "0x000000000000000000000000b366ce2f8d28650fecd27af5e997af49b9bd40c8"
0xd95f5bf7637d1ddc30aa9c1d291c5d1c2d7f5d9a42df56de191172bede78ed20 = "0x0000000000000000000000000000000000000000000000000000000000000004"
You don't need to calculate the storage above yourself, you can just make changes inside go-lachesis/lachesis/genesis/genesis.go
file (e.g. inside MainGenesis()
), recompile lachesis
binary, and then dump the resulting config with lachesis dumpconfig
However, it only means that SFC wouldn't work correctly, it's still not obvious why you get the DB errors on a first event in a new epoch. Is it possible to capture the node logs and post here? If yes, then please also add the flag --verbosity 5
to capture all the logs
Also try to launch the fakenet (it's a special network for local testing), e.g. lachesis --fakenet 1/1
. If it'll produce an error after epoch sealing, then it's not related to your network configuration at all. It'll seal first epoch after 2 events, so you will not wait for long.
Ah, I was using the method you mentioned but maybe I didn't update it after adding new accounts! I will try your suggestions and report back. thx!
I might have an idea why you get the DB error - it's possible that you did re-launch the network, but not all the previous DBs from a previous network were erased. Some DBs are associated with only one epoch, they are created for that epoch and get pruned after this epoch is sealed. It looks like there'a leftover DB for epoch 2
from a previous network (hence the sanity check fails)
To erase all the existing node DBs in a datadir: rm -r /path/to/datadir/*-ldb
Also ensure that you erase data after node has fully stopped. During stopping, node may create new files (some DB are created on disk only during flushing, they live only in memory before that)
Describe the bug I am trying to run a testnet. I am setting up normally, changing some values is mainnet.toml and things basically work until it gets to whatever block number is in
MaxEpochBlocks
. I am compiling, dumping config and copying the contract data to mainnet.toml as outlined in the docs. I am hoping it is a configuration issue but it cannot seem to switch epochs without giving me the following error:CRIT [08-24|07:53:04.457] Inconsistent BranchIDCreators len (inconsistent DB) event="{id=2:24455:803a64, p=[2:24454:60d21e], by=2, frame=0:n}"
To Reproduce (mainnet.toml)
Expected behavior It should continue running and increment epochs.
AWS