better error message if fee estimates are missing

This commit is contained in:
ThomasV 2017-03-05 20:39:00 +01:00
parent eb7f9c98ce
commit fb3e09c24e
1 changed files with 3 additions and 0 deletions

View File

@ -804,6 +804,9 @@ class Abstract_Wallet(PrintError):
if not inputs:
raise NotEnoughFunds()
if fixed_fee is None and config.fee_per_kb() is None:
raise BaseException('Dynamic fee estimates not available')
for item in inputs:
self.add_input_info(item)