forked from Qortal/qortal
Additional benefit is to speed up syncing if node has trade-bot entries, as a batch of blocks processed within 30s will have the same HTLC responses as neither Bitcoin nor Litecoin blocks are that fast. Once synced, the next Qortal block (~60s) should pick up any new changes. Generally users will be synced when using trade-bot anyway. Also moved bitcoiny.getAddressTransactions(p2shAddress) into BitcoinyHTLC.findHtlcSecret() so only called if secret, or lack thereof, is not cached. Added tests to cover caching.