forked from Qortal/qortal
e3abeafc6b
Bitcoin/Litecoin common aspects extracted in a "Bitcoiny" common class. So: Bitcoin (was BTC) extends Bitcoiny Litecoin (future code) will also extend Bitcoiny ElectrumX is now a BitcoinyBlockchainProvider to allow easier future replacement and also tidier integration. BTCP2SH is now BitcoinyHTLC as they are generic hash time-locked contracts, probably Bitcoin/Litecoin agnostic. BTCACCT is now BitcoinACCTv1, allowing for v2+ and also LitecoinACCTv1, etc. BitcoinTransaction is now BitcoinyTransaction as they are pretty much the same in Litecoin. BitcoinException is now a more generic ForeignBlockchainException. --- Bitcoiny subclasses instantiate a new BitcoinyBlockchainProvider when creating their singleton instance. They pass relevant network details to the BBP, like server lists, genesis block hash, etc. Bitcoiny.WalletAwareUTXOProvider now only has the one key search mode that is equivalent to the old REQUEST_MORE_IF_ANY_SPENT. Tests tidied up. --- Still to do: Modifying TradeBot to handle multiple types of ACCTs, like BitcoinACCTv2, LitecoinACCTv1... Modifying API to support multiple types of ACCTs. Actually add Litecoin support. Build new ACCT without needing P2SH-B if possible. |
||
---|---|---|
.. | ||
java/org | ||
resources | ||
wasm/memory-pow |