mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
pass chainHeight, remove getChainHeight stub
typofix
This commit is contained in:
parent
6a2df4a76e
commit
485b4a1379
2 changed files with 2 additions and 16 deletions
|
@ -145,6 +145,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
return await _currentChangeAddress;
|
||||
},
|
||||
getTxCountForAddress: getTxCount,
|
||||
getChainHeight: () async => chainHeight,
|
||||
);
|
||||
initCoinControlInterface(
|
||||
walletId: walletId,
|
||||
|
|
|
@ -200,21 +200,6 @@ mixin FusionWalletInterface {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the current chain height.
|
||||
///
|
||||
/// This function is used by FusionDart to determine if a transaction is
|
||||
/// confirmed or not.
|
||||
///
|
||||
/// Returns:
|
||||
/// A `Future<int>` that resolves to the current chain height.
|
||||
///
|
||||
/// Throws:
|
||||
/// An `Exception` if the chain height cannot be determined.
|
||||
Future<int> getChainHeight() async {
|
||||
throw UnimplementedError(
|
||||
"TODO getChainHeight eg look up chain height from electrumx");
|
||||
}
|
||||
|
||||
// Initial attempt for CashFusion integration goes here.
|
||||
|
||||
/// Fuse the wallet's UTXOs.
|
||||
|
@ -235,7 +220,7 @@ mixin FusionWalletInterface {
|
|||
/*createNewReservedChangeAddress: createNewReservedChangeAddress,*/
|
||||
getUnusedReservedChangeAddresses: getUnusedReservedChangeAddresses,
|
||||
getSocksProxyAddress: getSocksProxyAddress,
|
||||
getChainHeight: getChainHeight,
|
||||
getChainHeight: _getChainHeight,
|
||||
);
|
||||
|
||||
// Add stack UTXOs.
|
||||
|
|
Loading…
Reference in a new issue