Skip to content

Commit

Permalink
Added support allowhighfee in sendrawtransaction by v0.9.1
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Sep 29, 2020
1 parent 8344260 commit d170cbe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions esplora.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,15 @@ static struct command_result *
sendrawtransaction(struct command *cmd, const char *buf, const jsmntok_t *toks)
{
const char *tx;

//FIXME(vincenzopalazzo) This propriety is added in the version 0.9.1
//We can try to give a meaning at this propriety, for the moment
//it is only a fix to walk around the param method error
bool *allowhighfees;
/* bitcoin-cli wants strings. */
if (!param(cmd, buf, toks, p_req("tx", param_string, &tx), NULL))
if (!param(cmd, buf, toks,
p_req("tx", param_string, &tx),
p_opt_def("allowhighfees", param_bool, &allowhighfees, false),
NULL))
return command_param_failed();

plugin_log(cmd->plugin, LOG_INFORM, "sendrawtransaction");
Expand Down

0 comments on commit d170cbe

Please sign in to comment.