mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
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:
parent
2880bb588a
commit
d05be124db
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue