ComposableFi / composable-cosmos

The home of IBC
29 stars 95 forks source link

Introduced the validation to not allow ibc with timeout timestamp less then X nanos. #465

Closed RustNinja closed 5 months ago

RustNinja commented 5 months ago

centaurid tx ibc-transfer transfer transfer channel-6 0xF66605eDE7BfCCc460097CAFD34B4924f1C6969D 1000000000000000ppica --from jn --fees 1000000000000ppica --home ~/.centauri-mainnet --keyring-backend "test" --node https://rpc-testnet5.composable-cosmos.composablenodes.tech:443 --chain-id=banksy-testnet-5 --gas=auto --packet-timeout-height 0-5493803 --packet-timeout-timestamp 1710526985000000000

here is an example of IBC transfer from cosmos to eth.

the idea to just reject any transfer where timeout-timestamp is less then specified in configuration for that specific channel.

hoank101 commented 5 months ago

what happen if we auto set --packet-timeout-timestamp to correct value, if validator set incorrect?