iost-official / go-iost

Official Go implementation of the IOST blockchain
https://developers.iost.io/
GNU Lesser General Public License v3.0
565 stars 112 forks source link

iwallet's chain_id error #1089

Closed aker0357 closed 5 years ago

aker0357 commented 5 years ago

ERROR: send tx error rpc error: code = Unknown desc = VerifyError invalid chain_id, should be 1020, yours:1024 https://github.com/iost-official/go-iost/blob/master/iwallet/root.go#L83

rootCmd.PersistentFlags().Uint32VarP(&chainID, "chain_id", "", uint32(1024), "chain id which distinguishes different network")

at root.go chainId should be 1020

ziranliu commented 5 years ago

It should be 1024 since the iwallet is build for mainnet. If you want to use it in other network, add --chain_id xxx in the command

aker0357 commented 5 years ago

thanks