Open nanuuki opened 5 years ago
Yeah I'm aware of that, I have tried that in the past however RLP traits are not implemented for u16/u32. Thanks for opening the ticket, I'll get to it at a later point in time. If you want to take a stab, let me know!
Short summary: A
chain_id
larger than 255 does not work and results in aninvalid sender
error when trying to settle.Commit hash or branch:
master
/0f13e34f000163ce759be0fd037fcdc3448659a8
How to reproduce the bug: Spin up a local Ethereum development chain with
geth
and set the chain id to1337
. Configure a settlement engine to use that w/chain_id
1337
.Description:
chain_id
is au8
at the moment (https://github.com/interledger-rs/settlement-engines/blob/master/src/engines/ethereum_ledger/eth_engine.rs#L1110-L1112), but for instance the defaultgeth
development chain id is1337
. Also there's a bunch of other chains using large values for the chain id (https://github.com/ethereum-lists/chains).Suggestion: Make the
chain_id
au16
or even au32
to enhance compatibility :)