Name | Lookup | Parameters | |
---|---|---|---|
initialize | 3200 | 2 | |
store_block_header | 3201 | 1 | |
verify_and_validate_transaction | 3202 | 6 | |
verify_transaction_inclusion | 3203 | 3 | |
validate_transaction | 3204 | 4 |
Name | Lookup | Attributes | |
---|---|---|---|
Initialized | 3200 | ["u32","H256Le","AccountId"] | |
StoreMainChainHeader | 3201 | ["u32","H256Le","AccountId"] | |
StoreForkHeader | 3202 | ["u32","u32","H256Le","AccountId"] | |
ChainReorg | 3203 | ["H256Le","u32","u32"] | |
ForkAheadOfMainChain | 3204 | ["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":89,"value_id":434}} | |
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":439}} | |
ChainsHashes | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32"],"value":"[U8; 32]","keys_id":34,"value_id":89}} | |
BestBlock | {"origin":"PlainType","plain_type":"[U8; 32]","PlainTypeValue":89} | |
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":100} | |
DisableInclusionCheck | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":100} |
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 |
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 |