mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Use ParamsWrapper for witness serialization
This commit is contained in:
parent
5800c558eb
commit
6e9e4e6130
59 changed files with 226 additions and 219 deletions
|
|
@ -595,12 +595,9 @@ void RPCRunLater(const std::string& name, std::function<void()> func, int64_t nS
|
|||
deadlineTimers.emplace(name, std::unique_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000)));
|
||||
}
|
||||
|
||||
int RPCSerializationFlags()
|
||||
bool RPCSerializationWithoutWitness()
|
||||
{
|
||||
int flag = 0;
|
||||
if (gArgs.GetIntArg("-rpcserialversion", DEFAULT_RPC_SERIALIZE_VERSION) == 0)
|
||||
flag |= SERIALIZE_TRANSACTION_NO_WITNESS;
|
||||
return flag;
|
||||
return (gArgs.GetIntArg("-rpcserialversion", DEFAULT_RPC_SERIALIZE_VERSION) == 0);
|
||||
}
|
||||
|
||||
CRPCTable tableRPC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue