File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2021,7 +2021,7 @@ UniValue analyzepsbt(const JSONRPCRequest& request)
2021
2021
result.pushKV (" estimated_vsize" , (int )size);
2022
2022
// Estimate fee rate
2023
2023
CFeeRate feerate (fee, size);
2024
- result.pushKV (" estimated_feerate" , feerate.ToString ( ));
2024
+ result.pushKV (" estimated_feerate" , ValueFromAmount ( feerate.GetFeePerK () ));
2025
2025
}
2026
2026
result.pushKV (" fee" , ValueFromAmount (fee));
2027
2027
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ def run_test(self):
355
355
assert analyzed ['inputs' ][0 ]['has_utxo' ] and not analyzed ['inputs' ][0 ]['is_final' ] and analyzed ['inputs' ][0 ]['next' ] == 'signer' and analyzed ['next' ] == 'signer' and analyzed ['inputs' ][0 ]['missing' ]['signatures' ][0 ] == addrinfo ['embedded' ]['witness_program' ]
356
356
357
357
# Check fee and size things
358
- assert analyzed ['fee' ] == Decimal ('0.001' ) and analyzed ['estimated_vsize' ] == 134 and analyzed ['estimated_feerate' ] == '0.00746268 BTC/kB'
358
+ assert analyzed ['fee' ] == Decimal ('0.001' ) and analyzed ['estimated_vsize' ] == 134 and analyzed ['estimated_feerate' ] == Decimal ( '0.00746268' )
359
359
360
360
# After signing and finalizing, needs extracting
361
361
signed = self .nodes [1 ].walletprocesspsbt (updated )['psbt' ]
You can’t perform that action at this time.
0 commit comments