diff options
author | Michael Dietz <michael.dietz@waya.ai> | 2021-05-10 15:23:39 -0400 |
---|---|---|
committer | Michael Dietz <michael.dietz@waya.ai> | 2021-09-24 14:22:53 -0500 |
commit | 2b1fdc2c6ce1d0b0e51a3f107e23443c142d57af (patch) | |
tree | 145af33ce09130fcc19eaf49a43047430fb12321 /src/core_write.cpp | |
parent | d64deac7b823a0eba97ab3a3686054eefe330d3c (diff) |
refactor: minor styling, prefer snake case and same line if
Diffstat (limited to 'src/core_write.cpp')
-rw-r--r-- | src/core_write.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core_write.cpp b/src/core_write.cpp index aa560806cd..d92c970cb6 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -143,16 +143,15 @@ std::string EncodeHexTx(const CTransaction& tx, const int serializeFlags) void ScriptToUniv(const CScript& script, UniValue& out) { - ScriptPubKeyToUniv(script, out, /* fIncludeHex */ true, /* include_address */ false); + ScriptPubKeyToUniv(script, out, /* include_hex */ true, /* include_address */ false); } -void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex, bool include_address) +void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool include_hex, bool include_address) { CTxDestination address; out.pushKV("asm", ScriptToAsmStr(scriptPubKey)); - if (fIncludeHex) - out.pushKV("hex", HexStr(scriptPubKey)); + if (include_hex) out.pushKV("hex", HexStr(scriptPubKey)); std::vector<std::vector<unsigned char>> solns; const TxoutType type{Solver(scriptPubKey, solns)}; |