Changeset View
Changeset View
Standalone View
Standalone View
src/core_write.cpp
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <core_io.h> | #include <core_io.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <key_io.h> | #include <key_io.h> | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <script/script.h> | #include <script/script.h> | ||||
#include <script/sigencoding.h> | #include <script/sigencoding.h> | ||||
#include <script/standard.h> | #include <script/standard.h> | ||||
#include <serialize.h> | #include <serialize.h> | ||||
#include <streams.h> | #include <streams.h> | ||||
#include <util/moneystr.h> | |||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
UniValue ValueFromAmount(const Amount &amount) { | UniValue ValueFromAmount(const Amount &amount) { | ||||
bool sign = amount < Amount::zero(); | bool sign = amount < Amount::zero(); | ||||
Amount n_abs(sign ? -amount : amount); | Amount n_abs(sign ? -amount : amount); | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |