-
Notifications
You must be signed in to change notification settings - Fork 224
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
feat(rpc): Improve error messages from send transaction RPC #2049
Conversation
Looking forward to this. It was hard to decipher the error message:
I was looking for the error code |
Roger that |
Fixed in #2164 |
Rebased since it does not depend on #2038 |
* Split it into DuplicateCellDeps and DuplicateHeaderDeps * Include outpoint in DuplicateCellDeps * Include block header hash in DuplicateHeaderDeps
Include expected and actual version in the error message.
Include the limit and the actual serialized size in the error.
Fixed up 883dcf9 because of the clippy error
|
bors r=quake,zhangsoledad,yangby-cryptape |
2049: feat(rpc): Improve error messages from send transaction RPC r=quake,zhangsoledad,yangby-cryptape a=doitian This PR adds extra information in transaction verification errors, such as: * Which `input`, `cell_dep`, `header_dep` or `output` causes the error * If there's a limit, what's the value of the limit. There're also ambiguous error messages. For example, the pool has its own cycles limit on a single transaction, which is configurable in the config file. The block also as a limit on all the transactions in the block. Apparently, for a single transaction, the cycles should not exceed the block limit. This PR also avoids using the same error for different reasons. Co-authored-by: ian <ian@nervos.org>
bors r=quake,zhangsoledad,yangby-cryptape |
Build succeeded:
|
This PR adds extra information in transaction verification errors, such as:
input
,cell_dep
,header_dep
oroutput
causes the errorThere're also ambiguous error messages. For example, the pool has its own cycles limit on a single transaction, which is configurable in the config file. The block also as a limit on all the transactions in the block. Apparently, for a single transaction, the cycles should not exceed the block limit. This PR also avoids using the same error for different reasons.