Skip to content
Snippets Groups Projects
Commit fa4d3f2f authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Improve `BadProof` docs (#6019)


* Improve `BadProof` docs

* Update primitives/runtime/src/transaction_validity.rs

Co-authored-by: default avatarjoe petrowski <25483142+joepetrowski@users.noreply.github.com>

Co-authored-by: default avatarjoe petrowski <25483142+joepetrowski@users.noreply.github.com>
parent 71da6e96
No related merge requests found
......@@ -43,12 +43,21 @@ pub enum InvalidTransaction {
/// General error to do with the transaction being outdated (e.g. nonce too low).
Stale,
/// General error to do with the transaction's proofs (e.g. signature).
///
/// # Possible causes
///
/// When using a signed extension that provides additional data for signing, it is required
/// that the signing and the verifying side use the same additional data. Additional
/// data will only be used to generate the signature, but will not be part of the transaction
/// itself. As the verifying side does not know which additional data was used while signing
/// it will only be able to assume a bad signature and cannot express a more meaningful error.
BadProof,
/// The transaction birth block is ancient.
AncientBirthBlock,
/// The transaction would exhaust the resources of current block.
///
/// The transaction might be valid, but there are not enough resources left in the current block.
/// The transaction might be valid, but there are not enough resources
/// left in the current block.
ExhaustsResources,
/// Any other custom invalid validity that is not covered by this enum.
Custom(u8),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment