Skip to content

Commit

Permalink
Add bitcoin unclaimed deposit event (paritytech#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
atenjin authored Oct 13, 2020
1 parent 29db23d commit 80269bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpallets/gateway/bitcoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ decl_event!(
InsertHeader(H256),
/// tx hash, block hash, tx type
ProcessTx(H256, H256, BtcTxState),
/// Unclaimed deposit tx
UnclaimedDeposit(H256),
/// who, balance, txhsah, Chain Addr
DepositPending(AccountId, Balance, H256, AddrStr),
/// create withdraw tx, who proposal, withdrawal list id
Expand Down
2 changes: 2 additions & 0 deletions xpallets/gateway/bitcoin/src/tx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ fn insert_pending_deposit<T: Trait>(input_address: &Address, txid: &H256, balanc
balance
);
list.push(cache);

Module::<T>::deposit_event(RawEvent::UnclaimedDeposit(*txid));
}
});
}
Expand Down

0 comments on commit 80269bc

Please sign in to comment.