Skip to content

Commit

Permalink
Remove backported traces of RPCSerializationFlags
Browse files Browse the repository at this point in the history
We don't have this in Dash
  • Loading branch information
codablock committed Jan 21, 2020
1 parent 786dc78 commit 2b101c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ UniValue ValueFromAmount(const CAmount& amount);
std::string FormatScript(const CScript& script);
std::string EncodeHexTx(const CTransaction& tx);
void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex = true, int serialize_flags = 0, const CSpentIndexTxInfo* ptxSpentInfo = nullptr);
void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex = true, const CSpentIndexTxInfo* ptxSpentInfo = nullptr);

#endif // BITCOIN_CORE_IO_H
2 changes: 1 addition & 1 deletion src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void ScriptPubKeyToUniv(const CScript& scriptPubKey,
out.pushKV("addresses", a);
}

void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex, int serialize_flags, const CSpentIndexTxInfo* ptxSpentInfo)
void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex, const CSpentIndexTxInfo* ptxSpentInfo)
{
uint256 txid = tx.GetHash();
entry.pushKV("txid", txid.GetHex());
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool tx
if(txDetails)
{
UniValue objTx(UniValue::VOBJ);
TxToUniv(*tx, uint256(), objTx, true, RPCSerializationFlags());
TxToUniv(*tx, uint256(), objTx, true);
bool fLocked = llmq::quorumInstantSendManager->IsLocked(tx->GetHash());
objTx.push_back(Pair("instantlock", fLocked || chainLock));
objTx.push_back(Pair("instantlock_internal", fLocked));
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry)
}
}

TxToUniv(tx, uint256(), entry, true, RPCSerializationFlags(), &txSpentInfo);
TxToUniv(tx, uint256(), entry, true, &txSpentInfo);

bool chainLock = false;
if (!hashBlock.IsNull()) {
Expand Down Expand Up @@ -205,7 +205,7 @@ UniValue getrawtransaction(const JSONRPCRequest& request)
". Use gettransaction for wallet transactions.");

if (!fVerbose)
return EncodeHexTx(*tx, RPCSerializationFlags());
return EncodeHexTx(*tx);

UniValue result(UniValue::VOBJ);
TxToJSON(*tx, hashBlock, result);
Expand Down

0 comments on commit 2b101c6

Please sign in to comment.