pass chainHeight, remove getChainHeight stub

typofix
This commit is contained in:
sneurlax 2023-09-28 11:20:09 -05:00
parent 6a2df4a76e
commit 485b4a1379
2 changed files with 2 additions and 16 deletions

View file

@ -145,6 +145,7 @@ class BitcoinCashWallet extends CoinServiceAPI
return await _currentChangeAddress;
},
getTxCountForAddress: getTxCount,
getChainHeight: () async => chainHeight,
);
initCoinControlInterface(
walletId: walletId,

View file

@ -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.