test: added coverage to estimatefee

Added a assert for an rpc error when we try to estimate fee for the max
conf_target
This commit is contained in:
kevkevin 2023-06-22 08:27:38 -05:00
parent 2880bb588a
commit d05be124db
No known key found for this signature in database
GPG key ID: B4346A15246A925D

View file

@ -36,6 +36,9 @@ class EstimateFeeTest(BitcoinTestFramework):
assert_raises_rpc_error(-1, "estimatesmartfee", self.nodes[0].estimatesmartfee, 1, 'ECONOMICAL', 1)
assert_raises_rpc_error(-1, "estimaterawfee", self.nodes[0].estimaterawfee, 1, 1, 1)
# max value of 1008 per src/policy/fees.h
assert_raises_rpc_error(-8, "Invalid conf_target, must be between 1 and 1008", self.nodes[0].estimaterawfee, 1009)
# valid calls
self.nodes[0].estimatesmartfee(1)
# self.nodes[0].estimatesmartfee(1, None)