[BUG] Update litecoin client in bifrost to support latest 0.21.2 release

Related to #1332 (closed)

Based on https://blockchair.com/litecoin/nodes , currently there are only a few nodes on 0.21.2 , so we don't need to rush. However this PR is ready , and it is backward compatible. There are two changes in this PR

  1. Add method to detect whether litecoin daemon is post bitcoin core 0.19.0 or not , the one build in ltcd library is faulty
  2. on 0.21.2 default wallet is not created , need to create one when bifrost start to use it.
  3. SendRawTransaction RPC call to litecoin daemon , need to be changed , before bitcoin core 0.19.0, it only allow a bool flag to indicate whether you allow higher fee or not , however after 0.19.0, it should be pass in as a number to indicated max fee you allow , usually just the default max fee of the node.
Edited by Heimdall

Merge request reports

Loading