oasisprotocol / oasisprotocol/oasis-core
Bug: Insufficient Balance is Anything But
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 369
- Forks
- 151
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
If not enough gas.fee or possibly gas.limit is specified, the error returned is misleading:
oasis-node consensus submit_tx -a $ADDR --transaction.file tx_escrow.json
level=error module=grpc/client caller=grpc.go:242 ts=2020-09-22T17:15:10.387966357Z msg="request failed" method=/oasis-core.Consensus/SubmitTx req_seq=1 rsp=null err="transaction: insufficient balance to pay fees"
ts=2020-09-22T17:15:10.388145295Z level=error module=cmd/consensus caller=consensus.go:124 msg="failed to submit transaction" err="transaction: insufficient balance to pay fees"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the oasis-node consensus submit_tx command with tx_escrow.json and trace the Consensus/SubmitTx path associated with the reported error. Determine whether the insufficient-balance response comes from gas.fee or gas.limit validation; done means the returned error identifies the actual insufficient requirement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100