Make sure protx_update_registrar adds enough funds for the fees

FundSpecialTx must take the size of signature into account.
This commit is contained in:
Alexander Block 2018-11-15 08:05:38 +01:00
parent f65e74682a
commit 3c1f44c3a2

View File

@ -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);