Skip to content

Commit

Permalink
add event for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher committed Nov 28, 2019
1 parent 9bd7573 commit 03484c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srml/ethereum-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ decl_module! {
// confirm that the block hash is right
// get the receipt MPT trie root from the block header
// Using receipt MPT trie root to verify the proof and index etc.

let _relayer = ensure_signed(origin)?;

<Module<T>>::deposit_event(RawEvent::RelayProof(proof));
}

pub fn submit_header(origin, header: EthHeader) {
Expand All @@ -102,6 +106,7 @@ decl_event! {
<T as system::Trait>::AccountId
{
NewHeader(EthHeader),
RelayProof(ActionRecord),
TODO(AccountId),
}
}
Expand Down

0 comments on commit 03484c6

Please sign in to comment.