From 98663d7e20bb391febaffe213bb52b763717e135 Mon Sep 17 00:00:00 2001 From: Serge Victor Date: Thu, 18 Jan 2018 07:07:42 +0700 Subject: [PATCH] Intruduction of getfee command, fixes #3704 --- lib/commands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/commands.py b/lib/commands.py index bb10161c6..dead8b82b 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -672,6 +672,12 @@ class Commands: """ return wallet synchronization status """ return self.wallet.is_up_to_date() + @command('n') + def getfeerate(self): + """Return current optimal fee rate per kilobyte, according + to config settings (static/dynamic)""" + return self.config.fee_per_kb() + @command('') def help(self): # for the python console