Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aezora committed May 31, 2020
1 parent d14232f commit 9e632ac
Show file tree
Hide file tree
Showing 91 changed files with 1,477 additions and 2,435 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ set(SERVER_SOURCES
./src/httprpc.cpp
./src/httpserver.cpp
./src/init.cpp
./src/leveldbwrapper.cpp
./src/dbwrapper.cpp
./src/main.cpp
./src/merkleblock.cpp
./src/miner.cpp
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 1)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
Expand Down
361 changes: 26 additions & 335 deletions doc/release-notes.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git_check_in_repo() {
! { git status --porcelain -uall --ignored "$@" 2>/dev/null || echo '??'; } | grep -q '?'
}

DESC="1.1.0"
DESC="1.1.1"
SUFFIX=""
LAST_COMMIT_DATE=""
if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ BITCOIN_CORE_H = \
key.h \
key_io.h \
keystore.h \
leveldbwrapper.h \
dbwrapper.h \
limitedmap.h \
logging.h \
main.h \
Expand Down Expand Up @@ -230,7 +230,7 @@ libbitcoin_server_a_SOURCES = \
httprpc.cpp \
httpserver.cpp \
init.cpp \
leveldbwrapper.cpp \
dbwrapper.cpp \
main.cpp \
merkleblock.cpp \
miner.cpp \
Expand Down
23 changes: 15 additions & 8 deletions src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,26 @@ JSON_TEST_FILES = \
test/data/tx_valid.json \
test/data/sighash.json

RAW_TEST_FILES = test/data/alertTests.raw
RAW_TEST_FILES =

GENERATED_TEST_FILES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)

BITCOIN_TEST_SUITE = \
test/test_aezora.h \
test/test_aezora.cpp

if ENABLE_WALLET
BITCOIN_TEST_SUITE += \
wallet/test/wallet_test_fixture.cpp \
wallet/test/wallet_test_fixture.h
endif

# test_aezora binary #
BITCOIN_TESTS =\
test/zerocoin_implementation_tests.cpp\
test/zerocoin_denomination_tests.cpp\
test/arith_uint256_tests.cpp \
test/zerocoin_denomination_tests.cpp \
test/zerocoin_transactions_tests.cpp \
test/zerocoin_coinspend_tests.cpp \
test/zerocoin_bignum_tests.cpp \
test/benchmark_zerocoin.cpp \
test/tutorial_zerocoin.cpp \
test/libzerocoin_tests.cpp \
test/addrman_tests.cpp \
test/allocator_tests.cpp \
test/base32_tests.cpp \
Expand All @@ -50,13 +53,16 @@ BITCOIN_TESTS =\
test/getarg_tests.cpp \
test/hash_tests.cpp \
test/key_tests.cpp \
test/dbwrapper_tests.cpp \
test/main_tests.cpp \
test/mempool_tests.cpp \
test/merkle_tests.cpp \
test/mruset_tests.cpp \
test/multisig_tests.cpp \
test/net_tests.cpp \
test/netbase_tests.cpp \
test/pmt_tests.cpp \
test/prevector_tests.cpp \
test/random_tests.cpp \
test/reverselock_tests.cpp \
test/rpc_tests.cpp \
Expand All @@ -69,6 +75,7 @@ BITCOIN_TESTS =\
test/sighash_tests.cpp \
test/sigopcount_tests.cpp \
test/skiplist_tests.cpp \
test/sync_tests.cpp \
test/timedata_tests.cpp \
test/torcontrol_tests.cpp \
test/transaction_tests.cpp \
Expand All @@ -80,7 +87,7 @@ if ENABLE_WALLET
BITCOIN_TESTS += \
test/accounting_tests.cpp \
wallet/test/wallet_tests.cpp \
test/rpc_wallet_tests.cpp
wallet/test/crypto_tests.cpp
endif

test_test_aezora_SOURCES = $(BITCOIN_TEST_SUITE) $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES)
Expand Down
10 changes: 3 additions & 7 deletions src/addrman.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CAddrInfo : public CAddress
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(*(CAddress*)this);
READWRITE(source);
Expand Down Expand Up @@ -298,7 +298,7 @@ class CAddrMan
* very little in common.
*/
template <typename Stream>
void Serialize(Stream& s, int nType, int nVersionDummy) const
void Serialize(Stream& s) const
{
LOCK(cs);

Expand Down Expand Up @@ -348,7 +348,7 @@ class CAddrMan
}

template <typename Stream>
void Unserialize(Stream& s, int nType, int nVersionDummy)
void Unserialize(Stream& s)
{
LOCK(cs);

Expand Down Expand Up @@ -445,10 +445,6 @@ class CAddrMan
Check();
}

unsigned int GetSerializeSize(int nType, int nVersion) const
{
return (CSizeComputer(nType, nVersion) << *this).size();
}

void Clear()
{
Expand Down
17 changes: 8 additions & 9 deletions src/aezora-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,11 @@ static void MutateTxAddOutAddr(CMutableTransaction& tx, const std::string& strIn

// extract and validate ADDRESS
std::string strAddr = strInput.substr(pos + 1, std::string::npos);
CBitcoinAddress addr(strAddr);
if (!addr.IsValid())
CTxDestination destination = DecodeDestination(strAddr);
if (!IsValidDestination(destination)) {
throw std::runtime_error("invalid TX output address");

// build standard output script via GetScriptForDestination()
CScript scriptPubKey = GetScriptForDestination(addr.Get());
}
CScript scriptPubKey = GetScriptForDestination(destination);

// construct TxOut, append to transaction output list
CTxOut txout(value, scriptPubKey);
Expand Down Expand Up @@ -311,7 +310,7 @@ static bool findSighashFlags(int& flags, const std::string& flagStr)
uint256 ParseHashUO(std::map<std::string, UniValue>& o, std::string strKey)
{
if (!o.count(strKey))
return 0;
return UINT256_ZERO;
return ParseHashUV(o[strKey], strKey);
}

Expand Down Expand Up @@ -388,8 +387,8 @@ static void MutateTxSign(CMutableTransaction& tx, const std::string& flagStr)
CCoinsModifier coins = view.ModifyCoins(txid);
if (coins->IsAvailable(nOut) && coins->vout[nOut].scriptPubKey != scriptPubKey) {
std::string err("Previous output scriptPubKey mismatch:\n");
err = err + coins->vout[nOut].scriptPubKey.ToString() + "\nvs:\n" +
scriptPubKey.ToString();
err = err + ScriptToAsmStr(coins->vout[nOut].scriptPubKey) + "\nvs:\n"+
ScriptToAsmStr(scriptPubKey);
throw std::runtime_error(err);
}
if ((unsigned int)nOut >= coins->vout.size())
Expand Down Expand Up @@ -496,7 +495,7 @@ static void MutateTx(CMutableTransaction& tx, const std::string& command, const
static void OutputTxJSON(const CTransaction& tx)
{
UniValue entry(UniValue::VOBJ);
TxToUniv(tx, 0, entry);
TxToUniv(tx, UINT256_ZERO, entry);

std::string jsonOutput = entry.write(4);
fprintf(stdout, "%s\n", jsonOutput.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/amount.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CFeeRate
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(nSatoshisPerK);
}
Expand Down
9 changes: 2 additions & 7 deletions src/arith_uint256.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,19 +283,14 @@ class base_uint
return pn[0] | (uint64_t)pn[1] << 32;
}

unsigned int GetSerializeSize(int nType, int nVersion) const
{
return sizeof(pn);
}

template<typename Stream>
void Serialize(Stream& s, int nType, int nVersion) const
void Serialize(Stream& s) const
{
s.write((char*)pn, sizeof(pn));
}

template<typename Stream>
void Unserialize(Stream& s, int nType, int nVersion)
void Unserialize(Stream& s)
{
s.read((char*)pn, sizeof(pn));
}
Expand Down
4 changes: 2 additions & 2 deletions src/base58.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class CBitcoinExtKeyBase : public CBase58Data
CBitcoinExtKeyBase() {}
};

typedef CBitcoinExtKeyBase<CExtKey, 74, CChainParams::EXT_SECRET_KEY> CBitcoinExtKey;
typedef CBitcoinExtKeyBase<CExtPubKey, 74, CChainParams::EXT_PUBLIC_KEY> CBitcoinExtPubKey;
typedef CBitcoinExtKeyBase<CExtKey, BIP32_EXTKEY_SIZE, CChainParams::EXT_SECRET_KEY> CBitcoinExtKey;
typedef CBitcoinExtKeyBase<CExtPubKey, BIP32_EXTKEY_SIZE, CChainParams::EXT_PUBLIC_KEY> CBitcoinExtPubKey;


CTxDestination DestinationFor(const CKeyID& keyID, const CChainParams::Base58Type addrType);
Expand Down
9 changes: 2 additions & 7 deletions src/blob_uint256.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,14 @@ class base_blob
return sizeof(data);
}

unsigned int GetSerializeSize(int nType, int nVersion) const
{
return sizeof(data);
}

template<typename Stream>
void Serialize(Stream& s, int nType, int nVersion) const
void Serialize(Stream& s) const
{
s.write((char*)data, sizeof(data));
}

template<typename Stream>
void Unserialize(Stream& s, int nType, int nVersion)
void Unserialize(Stream& s)
{
s.read((char*)data, sizeof(data));
}
Expand Down
2 changes: 1 addition & 1 deletion src/bloom.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CBloomFilter
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(vData);
READWRITE(nHashFuncs);
Expand Down
14 changes: 8 additions & 6 deletions src/chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CBlockFileInfo
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(VARINT(nBlocks));
READWRITE(VARINT(nSize));
Expand Down Expand Up @@ -86,7 +86,7 @@ struct CDiskBlockPos {
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(VARINT(nFile));
READWRITE(VARINT(nPos));
Expand Down Expand Up @@ -294,9 +294,10 @@ class CDiskBlockIndex : public CBlockIndex
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nSerVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
if (!(nType & SER_GETHASH))
int nSerVersion = s.GetVersion();
if (!(s.GetType() & SER_GETHASH))
READWRITE(VARINT(nSerVersion));

READWRITE(VARINT(nHeight));
Expand Down Expand Up @@ -427,9 +428,10 @@ class CLegacyBlockIndex : public CBlockIndex
ADD_SERIALIZE_METHODS;

template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nSerVersion)
inline void SerializationOp(Stream& s, Operation ser_action)
{
if (!(nType & SER_GETHASH))
int nSerVersion = s.GetVersion();
if (!(s.GetType() & SER_GETHASH))
READWRITE(VARINT(nSerVersion));

if (nSerVersion >= DBI_SER_VERSION_NO_ZC) {
Expand Down
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static Checkpoints::MapCheckpoints mapCheckpoints =
(90384, uint256S("309d8f656ff173abf8aeb04092bacd35eb69693e43d31530abfaf098a394bdd6"))
(100330, uint256S("7afd2261cc8efdaf17844e0a5a125a789914836f790c19d898e2cfe1232a008a"))
(181752, uint256S("3da55ef79f2c5166691074bddae58e5c6a2982ad0658577527f4ea8cdabe37e8"))
(201110, uint256S("e61cdeb9819a5b36e25aab3fda9af9fec91c93e625a2fe7406324f52be68a8bf"));
(206658, uint256S("68aab2ab67180adf11cb798b3573ff2bc5430ebd74d621edbb6fbbb15fd9a025"));
static const Checkpoints::CCheckpointData data = {
&mapCheckpoints,
1577461410, // * UNIX timestamp of last checkpoint block
Expand Down
Loading

0 comments on commit 9e632ac

Please sign in to comment.