polkadot-js / apps

Basic Polkadot/Substrate UI for interacting with a Polkadot and Substrate node. This is the main user-facing application, allowing access to all features available on Substrate chains.
https://dotapps.io
Apache License 2.0
1.74k stars 1.53k forks source link

Unable to process payouts #10708

Open matthewmarcus opened 3 months ago

matthewmarcus commented 3 months ago

Attempting to process validator payouts via "Payouts" page on PJS. Upon submission of transaction(s), I get the spinning wheel icon for about 3-5 minutes, followed by an error message that just reads "Invalid."

image1 image2

Expected behavior is transaction approval and issuing of payouts.

Can't process payouts via PJS b/c of this bug.

Using PJS via Brave Browser on MacBook Pro (M1).

bee344 commented 3 months ago

@matthewmarcus could you provide the validator address?

matthewmarcus commented 3 months ago

@matthewmarcus could you provide the validator address?

Here ya go @bee344:

JKbJoCsgUEgjbGmGq7VdSNgSVQt8k43e3WWAYGCpiNP9r6D

bee344 commented 3 months ago

@matthewmarcus what's the amount of payouts you are trying to claim? So far we haven't found something that indicates that this error is caused by the extension or the API, since we've had reports of it happening with other tools, and it looks to be related to the utility.batch() call like here in subxt as well as some reports on the Kusama Validator Lounge.

matthewmarcus commented 3 months ago

@bee344 Well, someone claimed on my behalf so not sure. But had payout transaction to run tonight, and it worked fine. So not sure what changed, but it works now.

matthewmarcus commented 3 months ago

@bee344 Tried to run payouts again tonight and transaction never finalized.

Eras: 6748-6751 Total KSM: 2.9481

I missed any error that was displayed. batch trx runs for like 5 mins and then errors out.

matthewmarcus commented 3 months ago

@bee344 Tried again today. Captured error message. Same as before. Will restart browser and try again.

Screenshot 2024-06-17 at 3 09 11 PM

Relaunching (and updating) browser did not fix the issue.

bee344 commented 3 months ago

@matthewmarcus Have you tried claiming less eras? On the other cases, claiming up to 3 eras worked. I'm ooo for this week, so I'll be able to look up more stuff when I'm back, but so far it looks like a change on the weights of some calls is what's causing this.

matthewmarcus commented 3 months ago

@bee344 Not sure how to claim specific eras. I've only used the "Payouts" button which doesn't let you choose how many eras to claim.

It seems there are others having the same Payout issues. Seeing several people talking about it in 1KV Element room.

matthewmarcus commented 2 months ago

@bee344 Any updates on your end? I just tried to run payouts again. Both trx ended with the same Invalid errors.

bee344 commented 2 months ago

@matthewmarcus As stated on my previous reply, I was ooo the past week, so no updates on this issue.

On the other hand, this is highly likely to be related to a change in the weights of the make_payout call, which could be patched in apps with a workaround on how that button works, and I'm pretty confident it has nothing to do with the extension itself.

That being said, you can still claim payouts through the extrinsics page, so although it's annoying it's not like you can't claim them at all, and we have some other stuff higher on the priority list at the time being, but we'll keep looking into this. Just don't expect a patch for the extension, and it will take a bit of time untill we fully address this on apps.

matthewmarcus commented 2 months ago

@bee344 Got ya. No worries.

Re: Extrinsics -> staking -> payoutStakers(validatorStash,era), do you know if it's possible to payout multiple eras at once using this call, or do you have to do one at a time?