-
Notifications
You must be signed in to change notification settings - Fork 134
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
Reducer incorrectly handles maxTransactionsWithActions option when the list of the actions is pre-fetched. #1427
Comments
IIUC, this is exactly the behavior that was intended. Not a bug. Of course, it's not great to have a hard limit in the number of pending actions that a contract can handle. We're working on that. |
@mitschabaude On the local blockchain, it works; when I set skipActionStatePrecondition to true, I'm able to send 16 actions to the contract with maxTransactionsWithActions set to 3 and then process all 16 actions by calling reduce 6 times: each time, reduce() processes max 3 actions. I only experience this issue on the Berkeley testnet. |
Oh right, that should work on Berkeley as well. Thanks for clarifying (Should be trivial to fix. Just not throw that deliberate error when |
On the Berkeley testnet, the reducer throws the error in the reducer that uses the maxTransactionsWithActions option, and the number of actions is higher than maxTransactionsWithActions:
The error throws when
and
2) the number of actions starting at fromActionState is higher than maxTransactionsWithActions.
In case the actions are not pre-fetched, the empty list of actions is being processed as described in #1426
Code:
https://github.com/dfstio/minanft-api/blob/maxTransactionsWithActions/src/external/NameService/mapcontract.ts#L169:
The text was updated successfully, but these errors were encountered: