Name | Lookup | Parameters | |
---|---|---|---|
verify_and_validate_transaction | 1100 | 6 | |
verify_transaction_inclusion | 1101 | 3 | |
validate_transaction | 1102 | 4 |
Name | Lookup | Attributes | |
---|---|---|---|
Initialized | 1100 | ["u32","H256Le","AccountId"] | |
StoreMainChainHeader | 1101 | ["u32","H256Le","AccountId"] | |
StoreForkHeader | 1102 | ["u32","u32","H256Le","AccountId"] | |
ChainReorg | 1103 | ["H256Le","u32","u32"] | |
ForkAheadOfMainChain | 1104 | ["u32","u32","u32"] |
Name | Type | |
---|---|---|
BlockHeaders | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"btc_relay:types:RichBlockHeader","keys_id":55,"value_id":293}} | |
Chains | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":4}} | |
ChainsIndex | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"bitcoin:types:BlockChain","keys_id":4,"value_id":298}} | |
ChainsHashes | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32"],"value":"[U8; 32]","keys_id":30,"value_id":55}} | |
BestBlock | {"origin":"PlainType","plain_type":"[U8; 32]","PlainTypeValue":55} | |
BestBlockHeight | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
StartBlockHeight | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
ChainCounter | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
StableBitcoinConfirmations | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
StableParachainConfirmations | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
DisableDifficultyCheck | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":68} | |
DisableInclusionCheck | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":68} |
Name | Type | Value | |
---|---|---|---|
ParachainBlocksPerBitcoinBlock | U32 | 32000000 |
Name | Docs |
---|---|
AlreadyInitialized | Already initialized |
InvalidStartHeight | Start height must be start of difficulty period |
MissingBlockHeight | Missing the block at this height |
InvalidHeaderSize | Invalid block header size |
DuplicateBlock | Block already stored |
OutdatedBlock | Block already stored and is not head |
PrevBlock | Previous block hash not found |
InvalidChainID | Invalid chain ID |
LowDiff | PoW hash does not meet difficulty target of header |
DiffTargetHeader | Incorrect difficulty target specified in block header |
MalformedTxid | Malformed transaction identifier |
BitcoinConfirmations | Transaction has less confirmations of Bitcoin blocks than required |
ParachainConfirmations | Transaction has less confirmations of Parachain blocks than required |
OngoingFork | Current fork ongoing |
MalformedMerkleProof | Merkle proof is malformed |
InvalidMerkleProof | Invalid merkle proof |
Shutdown | BTC Parachain has shut down |
InvalidTxid | Transaction hash does not match given txid |
InvalidPaymentAmount | Invalid payment amount |
MalformedTransaction | Transaction has incorrect format |
InvalidPayment | Incorrect recipient Bitcoin address |
InvalidOutputFormat | Incorrect transaction output format |
InvalidOpReturn | Incorrect identifier in OP_RETURN field |
InvalidTxVersion | Invalid transaction version |
UnknownErrorcode | Error code not applicable to blocks |
ForkIdNotFound | Blockchain with requested ID not found |
BlockNotFound | Block header not found for given hash |
AlreadyReported | Error code already reported |
UnauthorizedRelayer | Unauthorized staked relayer |
ChainCounterOverflow | Overflow of chain counter |
BlockHeightOverflow | Overflow of block height |
ChainsUnderflow | Underflow of stored blockchains counter |
EndOfFile | EndOfFile reached while parsing |
MalformedHeader | Format of the header is invalid |
InvalidBlockVersion | Invalid block header version |
MalformedWitnessOutput | Format of the BIP141 witness transaction output is invalid |
MalformedP2PKHOutput | |
MalformedP2SHOutput | |
MalformedOpReturnOutput | Format of the OP_RETURN transaction output is invalid |
UnsupportedOutputFormat | |
UnsupportedInputFormat | |
InvalidBtcHash | User supplied an invalid address |
InvalidScript | User supplied an invalid script |
InvalidBtcAddress | Specified invalid Bitcoin address |
ArithmeticOverflow | Arithmetic overflow |
ArithmeticUnderflow | Arithmetic underflow |
TryIntoIntError | TryInto failed on integer |
InvalidTransaction | Transaction does meet the requirements to be considered valid |
InvalidOpReturnTransaction | Transaction does meet the requirements to be a valid op-return payment |
InvalidCompact | Invalid compact value in header |