Skip to content

Commit

Permalink
Make sure protx_update_registrar adds enough funds for the fees
Browse files Browse the repository at this point in the history
FundSpecialTx must take the size of signature into account.
  • Loading branch information
codablock committed Nov 15, 2018
1 parent f65e746 commit 3c1f44c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpc/rpcevo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ UniValue protx_update_registrar(const JSONRPCRequest& request)
tx.nVersion = 3;
tx.nType = TRANSACTION_PROVIDER_UPDATE_REGISTRAR;

// make sure we get anough fees added
ptx.vchSig.resize(65);

FundSpecialTx(tx, ptx);
SignSpecialTxPayloadByHash(tx, ptx, keyOwner);
SetTxPayload(tx, ptx);
Expand Down

0 comments on commit 3c1f44c

Please sign in to comment.