[BUG]: check_pending_account_resources
must match pending transaction acceptance
#87
Closed
1 task done
Labels
bug
Something isn't working
Is there an existing issue for this?
Current behavior
This RPC call is used at the beginning of
submit_transaction
and determines if the transaction would be accepted so it should match the implementation that actually adds the pending transaction.Right now it is possible to have enough available RC left on the head node while not having enough RC on another fork which results in the rejection of the pending transaction.
koinos-mempool/libraries/mempool/mempool.cpp
Lines 251 to 267 in b0e3c2d
Expected behavior
If
check_pending_account_resources
returnstrue
then the resulting pending transaction should be accepted.If
check_pending_account_resources
returnsfalse
then the resulting pending transaction should fail.Steps to reproduce
No response
Environment
- OS:
Anything else?
No response
The text was updated successfully, but these errors were encountered: