From 3c1f44c3a2314f09ff1294fb6017bbb565145bad Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 15 Nov 2018 08:05:38 +0100 Subject: [PATCH] Make sure protx_update_registrar adds enough funds for the fees FundSpecialTx must take the size of signature into account. --- src/rpc/rpcevo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rpc/rpcevo.cpp b/src/rpc/rpcevo.cpp index f4db5b608..cb1e3d815 100644 --- a/src/rpc/rpcevo.cpp +++ b/src/rpc/rpcevo.cpp @@ -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);