babylonchain / babylon

Main repo for Babylon full node
https://babylonchain.io
Other
239 stars 165 forks source link

Error when trying wrapped delegation #471

Open curlycrypto184 opened 8 months ago

curlycrypto184 commented 8 months ago

Summary of Bug

Running into the following error when trying to wrapped delegate:

Error: rpc error: code = Unknown desc = rpc error: code = Unknown desc = failed to execute message; message index: 0: the 0-th epoch does not handle messages [cosmos/cosmos-sdk@v0.50.4-0.20240126152601-c4a2fe2b8987/baseapp/baseapp.go:991] with gas used: '36485': unknown request

Checked rpc endpoint is fully synced and able to get correct epoch.

Version

v0.8.1

Steps to Reproduce

Do a wrapped delegation txn

SebastianElvis commented 8 months ago

Hi, thanks for reporting! This is indeed an issue and will be fixed in the next release. Meanwhile, as a temporary solution, could you please add --gas with an explicit amount (as opposed to --gas auto) when submitting a delegation tx? This should work for now.

curlycrypto184 commented 8 months ago

Thanks. Adding an explicit amount for --gas works.

sbidolach commented 8 months ago

It seems that add --gas works but then I have this error

raw_log: 'out of gas in location: ReadFlat; gasWanted: 0, gasUsed: 1000: out of gas'

Do you know what value should I set?

sbidolach commented 8 months ago

Finally, I was able to broadcast my tx by the below command:

babylond tx epoching delegate <operator_address> 1000000ubbn --from wallet --chain-id bbn-test-3 --gas-adjustment 1.4 --gas 100000 --fees 10ubbn