mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Fix BitGo fee provider parser (#2381)
This commit is contained in:
parent
f7fdca3e22
commit
52c21aa618
@ -19,7 +19,7 @@ case class BitGoResult(
|
||||
cpfpFeePerKb: SatoshisPerKiloByte,
|
||||
numBlocks: Int,
|
||||
confidence: Int,
|
||||
multiplier: Int,
|
||||
multiplier: Double,
|
||||
feeByBlockTarget: Map[Int, SatoshisPerKiloByte]
|
||||
) extends FeeRateApiResult
|
||||
|
||||
|
@ -10,7 +10,7 @@ import play.api.libs.json.{JsError, JsSuccess, Json}
|
||||
import scala.util.{Failure, Success, Try}
|
||||
|
||||
/** Fetches fee rate from BitGo's API
|
||||
* Documentation found here: https://www.bitgo.com/api/v2/#operation/v2.tx.getfeeestimate
|
||||
* @see [[https://www.bitgo.com/api/v2/#operation/v2.tx.getfeeestimate]]
|
||||
*/
|
||||
case class BitGoFeeRateProvider(blockTargetOpt: Option[Int])(implicit
|
||||
override val system: ActorSystem)
|
||||
@ -32,7 +32,7 @@ case class BitGoFeeRateProvider(blockTargetOpt: Option[Int])(implicit
|
||||
case JsError(error) =>
|
||||
Failure(
|
||||
new RuntimeException(
|
||||
s"Unexpected error when parsing response: $error"))
|
||||
s"Unexpected error when parsing response $str: $error"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user