Improve api to estimatesmartfee
commit439c4e8ad5871f59d87ae2ab77fe01aa6fe41414
authorAlex Morcos <morcos@chaincode.com>
Thu, 29 Jun 2017 17:57:33 +0000 (29 13:57 -0400)
committerAlex Morcos <morcos@chaincode.com>
Mon, 17 Jul 2017 14:52:14 +0000 (17 10:52 -0400)
treef2233305929505927b54e090be38488417df8b5d
parent91edda8f3c81ba5a69f44485f20d74f85ec9cee1
Improve api to estimatesmartfee

Change parameter for conservative estimates to be an estimate_mode string.
Change to never return a -1 for failure but to instead omit the feerate and
return an error string.  Throw JSONRPC error on invalid nblocks parameter.
src/policy/fees.cpp
src/rpc/client.cpp
src/rpc/mining.cpp