Add CashAddr Address Format

Ported from Bitcoin Unlimited, Bitcoin ABC
This commit is contained in:
lateminer
2018-01-14 22:32:08 +03:00
parent 7cd5894690
commit 323a6750c2
85 changed files with 3107 additions and 780 deletions

16
src/config.cpp Normal file
View File

@@ -0,0 +1,16 @@
// Copyright (c) 2017 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "config.h"
#include "chainparams.h"
#include "consensus/consensus.h"
GlobalConfig::GlobalConfig() : useCashAddr(false) {}
const CChainParams &GlobalConfig::GetChainParams() const { return Params(); }
static GlobalConfig gConfig;
const Config &GetConfig() { return gConfig; }
void GlobalConfig::SetCashAddrEncoding(bool c) { useCashAddr = c; }
bool GlobalConfig::UseCashAddrEncoding() const { return useCashAddr; }
const CChainParams &DummyConfig::GetChainParams() const { return Params(CBaseChainParams::REGTEST); }