entropyxyz / sdk

Official JavaScript SDK for Entropy blockchain.
GNU Affero General Public License v3.0
7 stars 0 forks source link

[bug] with more then two validators signing is sometimes broken #367

Closed frankiebee closed 3 weeks ago

frankiebee commented 1 month ago

Some times when you have more then one validator to a sub group you get this error every other time when trying to submit a sigRequest:

Error: request failed 500, Internal Server Error fetch: http://44.204.64.128:3001/user/sign_tx FULLRESPONSE: Invalid Signer: Invalid Signer in Signing group

Not exactly sure why but working theory is the formating being done by polkadot js might sometimes be reversing the order. Or the math we are doing does not match with rust expectations.

This is a hard one to test. and requires adding more validators to are scripts. Related though. Sub groups are being removed in the near future so simple fix is to just try catch the first time if we get this error then revers the sub group list.