mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
b7c7eaf1f2
Provide a new 'BitcoindDaemon' block notification socket server, to replace 'com.neemre.btcdcli4j.daemon.BtcdDaemonImpl'. This starts a single service thread to listen for raw block hashes on localhost port 512*, sent by the specified 'blocknotify' shell/batch script, delegating to a pool of worker threads to run the supplied BlockListener handler. Unlike the original BtcdDaemonImpl class, a call to the 'getblock' RPC method is not made automatically to supply a complete block to the handler, instead requiring a separate, manual BitcoindClient.getBlock invocation from within RpcService. Also provide unit tests using a mock ServerSocket + Socket. TODO: Use the new Bitcoind(Client|Daemon) implementations in RpcService, in place of btcdcli4j Btcd(Client|Daemon)Impl & remove the old library. |
||
---|---|---|
.. | ||
src |