-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multisig addresses fail after a single transaction #144
Comments
Terminal 1: enigmacli config chain-id multisig-test
enigmacli config output json
enigmacli config indent true
enigmacli config trust-node true
enigmacli config keyring-backend test
enigmad init banana --chain-id multisig-test
perl -i -pe 's/"stake"/"uscrt"/g' ~/.enigmad/config/genesis.json
yes | enigmacli keys add t1
yes | enigmacli keys add t2
yes | enigmacli keys add t3
enigmad add-genesis-account $(enigmacli keys show -a t1) 1000000000000uscrt
enigmad gentx --name t1 --keyring-backend test --amount 1000000uscrt
enigmad collect-gentxs
enigmad validate-genesis
enigmad start Terminal 2: enigmacli keys add --multisig=t1,t2,t3 --multisig-threshold=2 ms1
MS1=$(enigmacli keys show -a ms1)
yes | enigmacli tx send t1 $MS1 10000uscrt
until (enigmacli q account $MS1 &> /dev/null) do echo "waiting for transfer t1->[10,000 uscrt]->ms1 to finish..." ; sleep 1; done
enigmacli tx send $MS1 $(enigmacli keys show -a t2) 1000uscrt --generate-only > unsignedTx.json
enigmacli tx sign unsignedTx.json --multisig $MS1 --from=t1 --output-document=p1sig.json
enigmacli tx sign unsignedTx.json --multisig $MS1 --from=t2 --output-document=p2sig.json
enigmacli tx multisign unsignedTx.json ms1 p1sig.json p2sig.json > signed.json
enigmacli tx broadcast signed.json
until (enigmacli q account $(enigmacli keys show -a t2) &> /dev/null) do echo "waiting for transfer ms1->[1,000 uscrt]->t2 to finish..." ; sleep 1; done
enigmacli q account $MS1 # ERROR: decoding bech32 failed: invalid bech32 string length 218
|
According to @alexanderbez we might need to wait for the cosmos-sdk fix: https://discordapp.com/channels/669268347736686612/669274997264613376/701878980911038504 |
Cosmos will fix this: https://discordapp.com/channels/669268347736686612/669274997264613376/702166585707724821 When they do, we'll upgrade. |
Any multisig account generated seems to work for 1 transaction, then bugs out with an error for any query/transaction attempted on that address
ERROR: decoding bech32 failed: invalid bech32 string length 218
My multisig address that self-destructed: enigma1mmdyfd2muezkp79x3yeajn3prucpkv6pfkx83g
May be related to the parsing of the public key of the multisig address as it is exactly 218 characters long?
Steps to reproduce:
Link to enigmachain debian:
Tested on:
The text was updated successfully, but these errors were encountered: