You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4.Query voting power: exocored q tendermint-validator-set --node http://localhost:20000/
result: the voting power of address: exovalcons1gzcn6md2xwregl9qjkxjtrfpg0f57g5y3xqmxt is 3700
Summary of Bug:
After Undelegate, voting power is updated in less than 1 epoch
Version: Exocore 1.0.9
Environment: Four validators built locally, without Oracle
Precondition:
Steps to Reproduce:
1.Deposit 1000 ETH
./assetcli deposit --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --amount 1000000000000000000000 --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161
2.Delegate 1000 ETH:
./assetcli delegate --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --amount 1000000000000000000000 --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161 --operator exo192mgay9r8mdgwcprcvgdm47td36n974h9r8z6q
3.Selfdelegate:
./assetcli self-delegate --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --operator exo192mgay9r8mdgwcprcvgdm47td36n974h9r8z6q --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161
4.Query voting power:
exocored q tendermint-validator-set --node http://localhost:20000/
result: the voting power of address: exovalcons1gzcn6md2xwregl9qjkxjtrfpg0f57g5y3xqmxt is 3700
5.Undeletega 550 ETH:
./assetcli undelegate --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --amount 550000000000000000000 --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161 --operator exo192mgay9r8mdgwcprcvgdm47td36n974h9r8z6q
6.Check voting power after 23 seconds:
exocored q tendermint-validator-set --node http://localhost:20000/
Actual result: the voting power of address: exovalcons1gzcn6md2xwregl9qjkxjtrfpg0f57g5y3xqmxt changed from 3700 to 3150
Expected result: After undelegate, the voting power should be updated after 1 epoch
The text was updated successfully, but these errors were encountered: