Introduce Minimal Header Chain: Proving Interface (#287)

* Add header-chain primitive crate

* Make MinimalHeaderChain functionaly the same as PeerBlockchain

* Use a better doc comment for MinimalHeaderChain

* Fix benchmark compilation

* Rust Fmt

* Remove Substrate based dependencies

* Rename MinimalHeaderChain to BaseHeaderChain
This commit is contained in:
Hernando Castano
2020-08-18 16:17:14 -04:00
committed by Bastian Köcher
parent a0555d8118
commit 29244ba76d
8 changed files with 82 additions and 26 deletions
+2 -2
View File
@@ -17,9 +17,9 @@
use crate::exchange::EthereumTransactionInclusionProof;
use bp_eth_poa::{Address, Header, RawTransaction, U256};
use bp_header_chain::BaseHeaderChain;
use frame_support::RuntimeDebug;
use hex_literal::hex;
use pallet_bridge_currency_exchange::PeerBlockchain;
use pallet_bridge_eth_poa::{
AuraConfiguration, PruningStrategy as BridgePruningStrategy, ValidatorsConfiguration, ValidatorsSource,
};
@@ -137,7 +137,7 @@ impl BridgePruningStrategy for PruningStrategy {
/// The Kovan Blockchain as seen by the runtime.
pub struct KovanBlockchain;
impl PeerBlockchain for KovanBlockchain {
impl BaseHeaderChain for KovanBlockchain {
type Transaction = RawTransaction;
type TransactionInclusionProof = EthereumTransactionInclusionProof;