aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_estimatefee.py
diff options
context:
space:
mode:
authorkevkevin <oapallikunnel@gmail.com>2023-06-22 08:27:38 -0500
committerkevkevin <oapallikunnel@gmail.com>2023-06-22 08:27:38 -0500
commitd05be124dbc0b24fb69d0c28ba2d6b297d243751 (patch)
tree6d789266d83bd92d3861e479f0ec3654f3f0d3c0 /test/functional/rpc_estimatefee.py
parent2880bb588a3529c87fb6e084d8bf99c23a82403f (diff)
downloadbitcoin-d05be124dbc0b24fb69d0c28ba2d6b297d243751.tar.xz
test: added coverage to estimatefee
Added a assert for an rpc error when we try to estimate fee for the max conf_target
Diffstat (limited to 'test/functional/rpc_estimatefee.py')
-rwxr-xr-xtest/functional/rpc_estimatefee.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/rpc_estimatefee.py b/test/functional/rpc_estimatefee.py
index dad3cbcf0c..6643799a76 100755
--- a/test/functional/rpc_estimatefee.py
+++ b/test/functional/rpc_estimatefee.py
@@ -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)