diff options
| author | Pieter Wuille <[email protected]> | 2017-07-07 00:54:42 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-07-07 10:45:31 -0700 |
| commit | 0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0 (patch) | |
| tree | 02bb833749f472a916c9ff5f585af9e94b5326b8 /src/rpc/blockchain.cpp | |
| parent | Merge #10698: Be consistent in calling transactions "replaceable" for Opt-In RBF (diff) | |
| download | discoin-0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0.tar.xz discoin-0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0.zip | |
Avoid dereference-of-casted-pointer
Diffstat (limited to 'src/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index c17ca2fa3..6178a1c7a 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -798,7 +798,7 @@ static void ApplyStats(CCoinsStats &stats, CHashWriter& ss, const uint256& hash, stats.nTransactions++; for (const auto output : outputs) { ss << VARINT(output.first + 1); - ss << *(const CScriptBase*)(&output.second.out.scriptPubKey); + ss << output.second.out.scriptPubKey; ss << VARINT(output.second.out.nValue); stats.nTransactionOutputs++; stats.nTotalAmount += output.second.out.nValue; |