Skip to content

Commit 80269bc

Browse files
authored
Add bitcoin unclaimed deposit event (paritytech#290)
1 parent 29db23d commit 80269bc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

xpallets/gateway/bitcoin/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ decl_event!(
170170
InsertHeader(H256),
171171
/// tx hash, block hash, tx type
172172
ProcessTx(H256, H256, BtcTxState),
173+
/// Unclaimed deposit tx
174+
UnclaimedDeposit(H256),
173175
/// who, balance, txhsah, Chain Addr
174176
DepositPending(AccountId, Balance, H256, AddrStr),
175177
/// create withdraw tx, who proposal, withdrawal list id

xpallets/gateway/bitcoin/src/tx/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ fn insert_pending_deposit<T: Trait>(input_address: &Address, txid: &H256, balanc
441441
balance
442442
);
443443
list.push(cache);
444+
445+
Module::<T>::deposit_event(RawEvent::UnclaimedDeposit(*txid));
444446
}
445447
});
446448
}

0 commit comments

Comments
 (0)