Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r Android-Token-V2/.git/config ADTv2-source/.git/config
- 10c10
- < url = https://github.com/CryptoRepairCrew/Android-Token-V2.git
- ---
- > url = https://github.com/exchanger/ADTv2-source.git
- Files Android-Token-V2/.git/index and ADTv2-source/.git/index differ
- diff -r Android-Token-V2/.git/logs/HEAD ADTv2-source/.git/logs/HEAD
- 1c1
- Only in ADTv2-source/.git/objects/pack: pack-1122ce72040b0b1278ee8bac4b933ca4004a259a.idx
- Only in ADTv2-source/.git/objects/pack: pack-1122ce72040b0b1278ee8bac4b933ca4004a259a.pack
- Only in Android-Token-V2/.git/objects/pack: pack-3e2bbeef50a2add64b98b69c18c2070ec9d923d1.idx
- Only in Android-Token-V2/.git/objects/pack: pack-3e2bbeef50a2add64b98b69c18c2070ec9d923d1.pack
- diff -r Android-Token-V2/.git/packed-refs ADTv2-source/.git/packed-refs
- 2,3c2
- < 91406408e8035b786086bdc4a2f083c0f6bcc037 refs/remotes/origin/master
- < 91406408e8035b786086bdc4a2f083c0f6bcc037 refs/remotes/origin/v2fork
- ---
- > 36f2e9be08cf76dd726ddda9cf36becbf7df8bb9 refs/remotes/origin/master
- diff -r Android-Token-V2/.git/refs/heads/master ADTv2-source/.git/refs/heads/master
- 1c1
- < 91406408e8035b786086bdc4a2f083c0f6bcc037
- ---
- > 36f2e9be08cf76dd726ddda9cf36becbf7df8bb9
- Only in ADTv2-source: .gitattributes
- Only in ADTv2-source: .gitignore
- Only in Android-Token-V2: .travis.yml
- Only in Android-Token-V2: COPYING
- Only in Android-Token-V2: INSTALL
- diff -r Android-Token-V2/androidtoken-qt.pro ADTv2-source/androidtoken-qt.pro
- 1,17d0
- < # figure out windows
- < win32 {
- < contains(QMAKE_HOST.arch, x86_64) {
- < message("x86_64 64-bit build")
- < WINBITS = 64
- < } else {
- < message("x86 32-bit build")
- < WINBITS = 32
- < }
- < }
- < win32 {
- < contains(WINBITS, 32) {
- < MSYS = MinGW/msys/1.0
- < } else {
- < MSYS = mingw64/msys
- < }
- < }
- 20c3
- < VERSION = 2.0.1.1
- ---
- > VERSION = 0.7.2
- 22,41c5
- <
- < QT += core gui
- <
- <
- < win32 {
- < contains(WINBITS, 32) {
- < INCLUDEPATH += C:/$$MSYS/local/include/boost-1_55/
- < } else {
- < INCLUDEPATH += C:/$$MSYS/local/include/boost-1_55/
- < }
- < }
- < win32:INCLUDEPATH += C:/$$MSYS/local/include
- < win32:INCLUDEPATH += C:/$$MSYS/local/ssl/include
- <
- < win32:contains(WINBITS, 64) {
- < INCLUDEPATH += C:/$$MSYS/local/BerkeleyDB.4.8/include
- < }
- <
- < DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE \
- < BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN __NO_SYSTEM_INCLUDES
- ---
- > DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN __NO_SYSTEM_INCLUDES
- 44c8
- < !macx:CONFIG += static
- ---
- > #windows:LIBS += -lshlwapi
- 46,54c10,21
- < # for boost 1.37, add -mt to the boost libraries
- < # use: qmake BOOST_LIB_SUFFIX=-mt
- < # for boost thread win32 with _win32 sufix
- < # use: BOOST_THREAD_LIB_SUFFIX=_win32-...
- < # or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
- <
- < # Dependency library locations can be customized with:
- < # BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH,
- < # BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
- ---
- > windows:LIBS += -lshlwapi
- > LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
- > LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
- > windows:LIBS += -lws2_32 -lole32 -loleaut32 -luuid -lgdi32
- > LIBS += -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53
- > BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_53
- > BOOST_INCLUDE_PATH=C:/deps/boost
- > BOOST_LIB_PATH=C:/deps/boost/stage/lib
- > BDB_INCLUDE_PATH=c:/deps/db/build_unix
- > BDB_LIB_PATH=c:/deps/db/build_unix
- > OPENSSL_INCLUDE_PATH=c:/deps/openssl/include
- > OPENSSL_LIB_PATH=c:/deps/openssl
- 62,65c29,32
- < # Mac: ensure compatibility with at least 10.7, 64 bit
- < macx:XXFLAGS += -mmacosx-version-min=10.7 -arch x86_64 \
- < -isysroot /Developer/SDKs/MacOSX10.7.sdk
- < !win32:!macx {
- ---
- > # Mac: compile for maximum compatibility (10.5, 32-bit)
- > macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
- >
- > !windows:!macx {
- 71,87c38,43
- < # OS X is never static
- < # macx:mystaticconfig {
- < # QMAKE_LIBS_QT =
- < # QMAKE_LIBS_QT_THREAD =
- < # LIBS += $(QTDIR)/lib/libqt.a -lz -framework Carbon
- < # LIBS += /usr/local/lib/libqrencode.3.dylib
- < # CONFIG += mystaticconfig
- < # }
- <
- < # bug in gcc 4.4 breaks some pointer code
- < # QMAKE_CXXFLAGS += -fno-strict-aliasing
- < # bug in gcc 4.4 breaks some pointer code
- < # QMAKE_CXXFLAGS += -fno-strict-aliasing
- < win32:contains(WINBITS, 32) {
- < # can have strict aliasing if opt is 0
- < QMAKE_CXXFLAGS_RELEASE -= -O2
- < QMAKE_CXXFLAGS_RELEASE += -O0
- ---
- > !win32 {
- > # for extra security against potential buffer overflows: enable GCCs Stack Smashing Protection
- > QMAKE_CXXFLAGS *= -fstack-protector-all --param ssp-buffer-size=1
- > QMAKE_LFLAGS *= -fstack-protector-all --param ssp-buffer-size=1
- > # We need to exclude this for Windows cross compile with MinGW 4.2.x, as it will result in a non-working executable!
- > # This can be enabled for Windows, when we switch to MinGW >= 4.4.x.
- 88a45,46
- > # for extra security on Windows: enable ASLR and DEP via GCC linker flags
- > win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat -static
- 90,91d47
- <
- < USE_QRCODE=1
- 97,101d52
- < win32:contains(WINBITS, 32) {
- < INCLUDEPATH += C:/qrencode-3.4.3
- < LIBS += -L"C:/qrencode-3.4.3"
- < }
- < macx:LIBS += /usr/local/lib/libqrencode.3.dylib
- 103,104d53
- < } else {
- < message(Building without QRCode support)
- 107d55
- < USE_UPNP=1
- 114,130d61
- < } else {
- < message(Building with UPNP support)
- < count(USE_UPNP, 0) {
- < USE_UPNP=1
- < }
- < DEFINES += USE_UPNP=$$USE_UPNP STATICLIB
- < win32 {
- < contains(WINBITS, 32) {
- < INCLUDEPATH += C:/miniupnpc-1.9
- < LIBS += -L"C:/miniupnpc-1.9/miniupnpc"
- < } else {
- < INCLUDEPATH += "C:/$$MSYS/local/miniupnpc-1.9"
- < LIBS += -L"C:/$$MSYS/local/miniupnpc-1.9/miniupnpc"
- < }
- < }
- < LIBS += -lminiupnpc
- < win32:LIBS += -liphlpapi
- 140,143c71,80
- < # use: qmake "FIRST_CLASS_MESSAGING=1"
- < contains(FIRST_CLASS_MESSAGING, 1) {
- < message(Building with first-class messaging)
- < DEFINES += FIRST_CLASS_MESSAGING
- ---
- > # use: qmake "USE_IPV6=1" ( enabled by default; default)
- > # or: qmake "USE_IPV6=0" (disabled by default)
- > # or: qmake "USE_IPV6=-" (not supported)
- > contains(USE_IPV6, -) {
- > message(Building without IPv6 support)
- > } else {
- > count(USE_IPV6, 0) {
- > USE_IPV6=1
- > }
- > DEFINES += USE_IPV6=$$USE_IPV6
- 151,161d87
- < !win32 {
- < # for extra security against potential buffer overflows
- < QMAKE_CXXFLAGS += -fstack-protector
- < QMAKE_LFLAGS += -fstack-protector
- < # do not enable this on windows, as it will result in a non-working executable!
- < }
- <
- < !win32:!macx {
- < QMAKE_LFLAGS *= -static
- < QMAKE_LFLAGS *= -Wl
- < }
- 164c90
- < !win32|contains(USE_BUILD_INFO, 1) {
- ---
- > !windows|contains(USE_BUILD_INFO, 1) {
- 175c101
- < QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
- ---
- > QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
- 244c170
- < src/protocol.h \
- ---
- > src/protocol.h \
- 252,255c178
- < src/clientversion.h\
- < src/coincontrol.h\
- < src/qt/coincontroldialog.h \
- < src/qt/coincontroltreewidget.h
- ---
- > src/clientversion.h
- 258d180
- < src/qt/coincontroltreewidget.cpp \
- 268,269d189
- < src/qt/coincontroldialog.cpp\
- < src/coincontrol.h\
- 330d249
- < src/qt/forms/coincontroldialog.ui \
- 379,380c298
- < contrib/gitian-descriptors/* doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc \
- < share/setup.nsi
- ---
- > doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc src/test/*.cpp src/test/*.h src/qt/test/*.cpp src/qt/test/*.h
- 385,391c303
- < win32 {
- < contains(WINBITS, 32) {
- < BOOST_LIB_SUFFIX = -mgw44-mt-d-1_55
- < } else {
- < BOOST_LIB_SUFFIX = -mgw47-mt-d-1_55
- < }
- < }
- ---
- > windows:BOOST_LIB_SUFFIX = -mgw44-mt-s-1_50
- 399c311
- < macx:BDB_LIB_PATH = /usr/local/BerkeleyDB.4.8/lib
- ---
- > macx:BDB_LIB_PATH = /opt/local/lib/db48
- 407c319
- < macx:BDB_INCLUDE_PATH = /usr/local/BerkeleyDB.4.8/include
- ---
- > macx:BDB_INCLUDE_PATH = /opt/local/include/db48
- 418,419c330,331
- < win32:DEFINES += WIN32
- < win32:RC_FILE = src/qt/res/bitcoin-qt.rc
- ---
- > windows:DEFINES += WIN32
- > windows:RC_FILE = src/qt/res/bitcoin-qt.rc
- 421c333
- < win32:!contains(MINGW_THREAD_BUGFIX, 0) {
- ---
- > windows:!contains(MINGW_THREAD_BUGFIX, 0) {
- 432c344
- < !win32:!macx {
- ---
- > !windows:!macx {
- 442c354
- < macx:TARGET = "AndroidTokens2 Qt"
- ---
- > macx:TARGET = "AndroidsTokensv2-Qt"
- 449,460c361
- < win32:LIBS += -L"C:/$$MSYS/local/ssl/lib"
- < win32:contains(WINBITS, 64) {
- < LIBS += -L"C:/$$MSYS/local/BerkeleyDB.4.8/lib"
- < LIBS += "C:/mingw64/bin/libwinpthread-1.dll"
- < LIBS += "C:/$$MSYS/local/lib/libboost_filesystem-mgw47-mt-d-1_55.dll"
- < LIBS += -static
- < }
- < win32:LIBS += -L"C:/$$MSYS/local/lib"
- < # win32:LIBS += "C:/mingw64/x86_64-w64-mingw32/lib/libgcc_s_sjlj-1.dll"
- < # win32:LIBS += "C:/mingw64/x86_64-w64-mingw32/lib/libstdc++-6.dll"
- < LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) \
- < $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
- ---
- > LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
- 463,473c364,366
- < win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
- < LIBS += -lboost_system$$BOOST_LIB_SUFFIX \
- < -lboost_filesystem$$BOOST_LIB_SUFFIX \
- < -lboost_program_options$$BOOST_LIB_SUFFIX \
- < -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
- <
- < win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
- <
- < win32:contains(WINBITS, 64) {
- < LIBS += -pthread
- < }
- ---
- > windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
- > LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
- > windows:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
- 476c369
- < !win32:!macx {
- ---
- > !windows:!macx {
- 483d375
- <
- Only in Android-Token-V2/contrib/debian: bin
- Only in Android-Token-V2: release
- diff -r Android-Token-V2/src/bitcoinrpc.cpp ADTv2-source/src/bitcoinrpc.cpp
- 209d208
- < { "addnode", &addnode, true, false },
- diff -r Android-Token-V2/src/bitcoinrpc.h ADTv2-source/src/bitcoinrpc.h
- 137d136
- < extern json_spirit::Value addnode(const json_spirit::Array& params, bool fHelp);
- diff -r Android-Token-V2/src/checkpoints.cpp ADTv2-source/src/checkpoints.cpp
- 27,40c27,40
- < ( 0, hashGenesisBlockOfficial )
- < ( 1, uint256("0x00000078c8be5ec4c316ef125ec1f610123709afbc3aa3b0d3ed621f49166a71"))
- < ( 5, uint256("0x000000100bb01a598795d724a7c8f5e082cf0fc943d6e699d16fd2d9f4547da3"))
- < ( 10, uint256("0x0000003d4fadc89263b8cf3eb79a0319e23f428357253f7096aae371cfe7b941"))
- < ( 15, uint256("0x000000137b5a7de0d631b89b142d767780d458ded1ff9f65da478370a8db1c28"))
- < ( 20, uint256("0x000000311e8f5e8b56f7eef0b00e3c2171dda61a5282e913ba4358d04f335fc0"))
- < ( 25, uint256("0x00000075279813a7c0f0e760bc41fc318cb911dc597e357da90d0db1455435e6"))
- < ( 10000, uint256("0x0000005464ab3d2a4886c3a28dc61bae83b12e687c357cef77cd5f0445a15798"))
- < ( 25000, uint256("0x00000037ed4a5584b27f9d6d598e9e0634b16a42fe36f62f5683a791b4b9f232"))
- < ( 52035, uint256("0x0000003bff3166e8658550d62c7c759f78d3785b6765ff440684a52518370ece"))
- < ( 55000, uint256("0x76ad9759d5e7f0b3e96876b211109de06ab78078c2e07afdc98ddb1469abfa11"))
- < ( 55045, uint256("0x0000005794e1bb87cdd253db71c3b0e22f7cae3331f9d6003a74cf05c737f162"))
- < ( 56235, uint256("0x0000007eba6b82ea2a4ec16a47d1fa675c465c711b3cbe915babde8116a4eef1"))
- < ( 66000, uint256("0xc0f933748641974cd220c1b5f202facb1834fd34dfedc2ed6d0bdc02e7408c29"))
- ---
- > ( 0, hashGenesisBlockOfficial )
- > ( 1, uint256("0x00000078c8be5ec4c316ef125ec1f610123709afbc3aa3b0d3ed621f49166a71"))
- > ( 5, uint256("0x000000100bb01a598795d724a7c8f5e082cf0fc943d6e699d16fd2d9f4547da3"))
- > ( 10, uint256("0x0000003d4fadc89263b8cf3eb79a0319e23f428357253f7096aae371cfe7b941"))
- > ( 15, uint256("0x000000137b5a7de0d631b89b142d767780d458ded1ff9f65da478370a8db1c28"))
- > ( 20, uint256("0x000000311e8f5e8b56f7eef0b00e3c2171dda61a5282e913ba4358d04f335fc0"))
- > ( 25, uint256("0x00000075279813a7c0f0e760bc41fc318cb911dc597e357da90d0db1455435e6"))
- > ( 10000, uint256("0x0000005464ab3d2a4886c3a28dc61bae83b12e687c357cef77cd5f0445a15798"))
- > ( 25000, uint256("0x00000037ed4a5584b27f9d6d598e9e0634b16a42fe36f62f5683a791b4b9f232"))
- > ( 52035, uint256("0x0000003bff3166e8658550d62c7c759f78d3785b6765ff440684a52518370ece"))
- > ( 55000, uint256("0x76ad9759d5e7f0b3e96876b211109de06ab78078c2e07afdc98ddb1469abfa11"))
- > ( 55045, uint256("0x0000005794e1bb87cdd253db71c3b0e22f7cae3331f9d6003a74cf05c737f162"))
- > ( 56235, uint256("0x0000007eba6b82ea2a4ec16a47d1fa675c465c711b3cbe915babde8116a4eef1"))
- >
- 79,81c79,80
- < // set a recent default in case broadcasting fails
- < uint256 hashSyncCheckpoint = uint256("0xc0f933748641974cd220c1b5f202facb1834fd34dfedc2ed6d0bdc02e7408c29");
- < uint256 hashPendingCheckpoint = uint256("0xc0f933748641974cd220c1b5f202facb1834fd34dfedc2ed6d0bdc02e7408c29");
- ---
- > uint256 hashSyncCheckpoint = 0;
- > uint256 hashPendingCheckpoint = 0;
- diff -r Android-Token-V2/src/main.cpp ADTv2-source/src/main.cpp
- 515c515
- < enum GetMinFee_mode mode, unsigned int nBytes) const
- ---
- > enum GetMinFee_mode mode) const
- 519a520
- > unsigned int nBytes = ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION);
- 635c636
- < int64 txMinFee = tx.GetMinFee(1000, false, GMF_RELAY, nSize);
- ---
- > int64 txMinFee = tx.GetMinFee(1000, false, GMF_RELAY);
- 941c942
- < int64 nSubsidy = 0 * COIN;
- ---
- > int64 nSubsidy = 1 * COIN;
- 944c945
- < nSubsidy = 66800000000 * COIN; // 66,800,000,000 coins
- ---
- > nSubsidy = 66800000000 * COIN; //
- 946,947c947
- < nSubsidy = 1 * COIN; // Waste electricity, give devs headaches
- <
- ---
- > nSubsidy = 1 * COIN; // 1 coins per year POW Inflation
- 1020c1020
- < unsigned int ComputeMinWork(unsigned int nBase, int64 nTime, bool fProofOfStake)
- ---
- > unsigned int ComputeMinWork(unsigned int nBase, int64 nTime)
- 1022,1027c1022
- < CBigNum bnTargetLimit;
- < if (fProofOfStake) {
- < bnTargetLimit = bnProofOfStakeLimit;
- < } else {
- < bnTargetLimit = bnProofOfWorkLimit;
- < }
- ---
- > CBigNum bnTargetLimit = bnProofOfWorkLimit;
- 2059a2055
- > CBlockIndex* pindexPrev = pindexBest;
- 2238,2242c2234
- < bnRequired.SetCompact(ComputeMinWork(
- < GetLastBlockIndex(pcheckpoint,
- < pblock->IsProofOfStake())->nBits,
- < deltaTime,
- < pblock->IsProofOfStake()));
- ---
- > bnRequired.SetCompact(ComputeMinWork(GetLastBlockIndex(pcheckpoint, pblock->IsProofOfStake())->nBits, deltaTime));
- 2247,2257c2239
- < printf("Too little %s: (%s > %s)\n",
- < pblock->IsProofOfStake()? "proof-of-stake" : "proof-of-work",
- < bnNewBlock.ToString().c_str(), bnRequired.ToString().c_str());
- < printf("Block %s:", hash.ToString().c_str());
- < return error("ProcessBlock() : block with too little %s",
- < pblock->IsProofOfStake()? "proof-of-stake" : "proof-of-work");
- < } else {
- < printf("Enough %s: (%s <= %s)\n",
- < pblock->IsProofOfStake()? "proof-of-stake" : "proof-of-work",
- < bnNewBlock.ToString().c_str(), bnRequired.ToString().c_str());
- < printf("Block %s:", hash.ToString().c_str());
- ---
- > return error("ProcessBlock() : block with too little %s", pblock->IsProofOfStake()? "proof-of-stake" : "proof-of-work");
- 3405c3387
- < printf("received block %s\n", block.GetHash().ToString().c_str());
- ---
- > printf("received block %s\n", block.GetHash().ToString().substr(0,20).c_str());
- 4354c4336
- < while (vNodes.empty() || IsInitialBlockDownload() || (fProofOfStake && vNodes.size() < 3 && nBestHeight < GetNumBlocksOfPeers()))
- ---
- > while (vNodes.empty() || IsInitialBlockDownload())
- diff -r Android-Token-V2/src/main.h ADTv2-source/src/main.h
- 122c122
- < unsigned int ComputeMinWork(unsigned int nBase, int64 nTime, bool fProofOfStake);
- ---
- > unsigned int ComputeMinWork(unsigned int nBase, int64 nTime);
- 598,601c598
- < int64 GetMinFee(unsigned int nBlockSize=1,
- < bool fAllowFree=true,
- < enum GetMinFee_mode mode=GMF_BLOCK,
- < unsigned int nBytes=0) const;
- ---
- > int64 GetMinFee(unsigned int nBlockSize=1, bool fAllowFree=false, enum GetMinFee_mode mode=GMF_BLOCK) const;
- Only in Android-Token-V2/src: obj
- diff -r Android-Token-V2/src/qt/bitcoin.cpp ADTv2-source/src/qt/bitcoin.cpp
- 86c86
- < splashref->showMessage(QString::fromStdString(message), Qt::AlignBottom|Qt::AlignHCenter, QColor(0,0,0));
- ---
- > splashref->showMessage(QString::fromStdString(message), Qt::AlignBottom|Qt::AlignHCenter, QColor(255,255,200));
- diff -r Android-Token-V2/src/qt/bitcoin.qrc ADTv2-source/src/qt/bitcoin.qrc
- 46,47c46
- < <file alias="splash">res/images/splash2.jpg</file>
- < <file alias="backg">res/images/wallet.png</file>
- ---
- > <file alias="splash">res/images/splash2.png</file>
- Only in Android-Token-V2/src/qt: coincontroldialog.cpp
- Only in Android-Token-V2/src/qt: coincontroldialog.h
- Only in Android-Token-V2/src/qt: coincontroltreewidget.cpp
- Only in Android-Token-V2/src/qt: coincontroltreewidget.h
- Only in Android-Token-V2/src/qt/forms: coincontroldialog.ui
- diff -r Android-Token-V2/src/qt/forms/optionsdialog.ui ADTv2-source/src/qt/forms/optionsdialog.ui
- 347,356d346
- < <widget class="QCheckBox" name="coinControlFeatures">
- < <property name="toolTip">
- < <string>Whether to show coin control features or not.</string>
- < </property>
- < <property name="text">
- < <string>Display coin &control features (experts only!)</string>
- < </property>
- < </widget>
- < </item>
- < <item>
- diff -r Android-Token-V2/src/qt/forms/overviewpage.ui ADTv2-source/src/qt/forms/overviewpage.ui
- 229c229
- < <height>20</height>
- ---
- > <height>40</height>
- 234,252d233
- < <item>
- < <widget class="QLabel" name="label_61">
- < <property name="text">
- < <string/>
- < </property>
- < <property name="pixmap">
- < <pixmap resource="../bitcoin.qrc">:/images/backg</pixmap>
- < </property>
- < <property name="scaledContents">
- < <bool>false</bool>
- < </property>
- < <property name="alignment">
- < <set>Qt::AlignCenter</set>
- < </property>
- < <property name="margin">
- < <number>2</number>
- < </property>
- < </widget>
- < </item>
- 340,346d320
- < </item>
- < <item>
- < <widget class="QPushButton" name="unlockWalletButton">
- < <property name="text">
- < <string>Unlock Wallet</string>
- < </property>
- < </widget>
- diff -r Android-Token-V2/src/qt/forms/sendcoinsdialog.ui ADTv2-source/src/qt/forms/sendcoinsdialog.ui
- 9,10c9,10
- < <width>850</width>
- < <height>400</height>
- ---
- > <width>686</width>
- > <height>217</height>
- 16,617c16
- < <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0">
- < <property name="bottomMargin">
- < <number>8</number>
- < </property>
- < <item>
- < <widget class="QFrame" name="frameCoinControl">
- < <property name="sizePolicy">
- < <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
- < <horstretch>0</horstretch>
- < <verstretch>0</verstretch>
- < </sizepolicy>
- < </property>
- < <property name="maximumSize">
- < <size>
- < <width>16777215</width>
- < <height>16777215</height>
- < </size>
- < </property>
- < <property name="frameShape">
- < <enum>QFrame::StyledPanel</enum>
- < </property>
- < <property name="frameShadow">
- < <enum>QFrame::Sunken</enum>
- < </property>
- < <layout class="QVBoxLayout" name="verticalLayoutCoinControl2">
- < <property name="spacing">
- < <number>-1</number>
- < </property>
- < <property name="leftMargin">
- < <number>0</number>
- < </property>
- < <property name="topMargin">
- < <number>0</number>
- < </property>
- < <property name="rightMargin">
- < <number>0</number>
- < </property>
- < <property name="bottomMargin">
- < <number>6</number>
- < </property>
- < <item>
- < <layout class="QVBoxLayout" name="verticalLayoutCoinControl" stretch="0,0,0,0,1">
- < <property name="spacing">
- < <number>0</number>
- < </property>
- < <property name="leftMargin">
- < <number>10</number>
- < </property>
- < <property name="topMargin">
- < <number>10</number>
- < </property>
- < <item>
- < <layout class="QHBoxLayout" name="horizontalLayoutCoinControl1">
- < <property name="bottomMargin">
- < <number>15</number>
- < </property>
- < <item>
- < <widget class="QLabel" name="labelCoinControlFeatures">
- < <property name="sizePolicy">
- < <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
- < <horstretch>0</horstretch>
- < <verstretch>0</verstretch>
- < </sizepolicy>
- < </property>
- < <property name="font">
- < <font>
- < <weight>75</weight>
- < <bold>true</bold>
- < </font>
- < </property>
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Coin Control Features</string>
- < </property>
- < </widget>
- < </item>
- < </layout>
- < </item>
- < <item>
- < <layout class="QHBoxLayout" name="horizontalLayoutCoinControl2" stretch="0,0,0,0">
- < <property name="spacing">
- < <number>8</number>
- < </property>
- < <property name="bottomMargin">
- < <number>10</number>
- < </property>
- < <item>
- < <widget class="QPushButton" name="pushButtonCoinControl">
- < <property name="styleSheet">
- < <string notr="true"/>
- < </property>
- < <property name="text">
- < <string>Inputs...</string>
- < </property>
- < </widget>
- < </item>
- < <item>
- < <widget class="QLabel" name="labelCoinControlAutomaticallySelected">
- < <property name="text">
- < <string>automatically selected</string>
- < </property>
- < <property name="margin">
- < <number>5</number>
- < </property>
- < </widget>
- < </item>
- < <item>
- < <widget class="QLabel" name="labelCoinControlInsuffFunds">
- < <property name="font">
- < <font>
- < <weight>75</weight>
- < <bold>true</bold>
- < </font>
- < </property>
- < <property name="styleSheet">
- < <string notr="true">color:red;font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Insufficient funds!</string>
- < </property>
- < <property name="margin">
- < <number>5</number>
- < </property>
- < </widget>
- < </item>
- < <item>
- < <spacer name="horizontalSpacerCoinControl">
- < <property name="orientation">
- < <enum>Qt::Horizontal</enum>
- < </property>
- < <property name="sizeHint" stdset="0">
- < <size>
- < <width>40</width>
- < <height>1</height>
- < </size>
- < </property>
- < </spacer>
- < </item>
- < </layout>
- < </item>
- < <item>
- < <widget class="QWidget" name="widgetCoinControl" native="true">
- < <property name="sizePolicy">
- < <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- < <horstretch>0</horstretch>
- < <verstretch>0</verstretch>
- < </sizepolicy>
- < </property>
- < <property name="minimumSize">
- < <size>
- < <width>0</width>
- < <height>0</height>
- < </size>
- < </property>
- < <property name="styleSheet">
- < <string notr="true"/>
- < </property>
- < <layout class="QHBoxLayout" name="horizontalLayoutCoinControl5">
- < <property name="margin">
- < <number>0</number>
- < </property>
- < <item>
- < <layout class="QHBoxLayout" name="horizontalLayoutCoinControl3" stretch="0,0,0,1">
- < <property name="spacing">
- < <number>20</number>
- < </property>
- < <property name="topMargin">
- < <number>0</number>
- < </property>
- < <property name="bottomMargin">
- < <number>10</number>
- < </property>
- < <item>
- < <layout class="QFormLayout" name="formLayoutCoinControl1">
- < <property name="horizontalSpacing">
- < <number>10</number>
- < </property>
- < <property name="verticalSpacing">
- < <number>14</number>
- < </property>
- < <property name="leftMargin">
- < <number>10</number>
- < </property>
- < <property name="topMargin">
- < <number>4</number>
- < </property>
- < <property name="rightMargin">
- < <number>6</number>
- < </property>
- < <item row="0" column="0">
- < <widget class="QLabel" name="labelCoinControlQuantityText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Quantity:</string>
- < </property>
- < <property name="margin">
- < <number>0</number>
- < </property>
- < </widget>
- < </item>
- < <item row="0" column="1">
- < <widget class="QLabel" name="labelCoinControlQuantity">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>0</string>
- < </property>
- < <property name="margin">
- < <number>0</number>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="0">
- < <widget class="QLabel" name="labelCoinControlBytesText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Bytes:</string>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="1">
- < <widget class="QLabel" name="labelCoinControlBytes">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>0</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < </layout>
- < </item>
- < <item>
- < <layout class="QFormLayout" name="formLayoutCoinControl2">
- < <property name="horizontalSpacing">
- < <number>10</number>
- < </property>
- < <property name="verticalSpacing">
- < <number>14</number>
- < </property>
- < <property name="leftMargin">
- < <number>6</number>
- < </property>
- < <property name="topMargin">
- < <number>4</number>
- < </property>
- < <property name="rightMargin">
- < <number>6</number>
- < </property>
- < <item row="0" column="0">
- < <widget class="QLabel" name="labelCoinControlAmountText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Amount:</string>
- < </property>
- < <property name="margin">
- < <number>0</number>
- < </property>
- < </widget>
- < </item>
- < <item row="0" column="1">
- < <widget class="QLabel" name="labelCoinControlAmount">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>0.00 BTC</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="0">
- < <widget class="QLabel" name="labelCoinControlPriorityText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Priority:</string>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="1">
- < <widget class="QLabel" name="labelCoinControlPriority">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>medium</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < </layout>
- < </item>
- < <item>
- < <layout class="QFormLayout" name="formLayoutCoinControl3">
- < <property name="horizontalSpacing">
- < <number>10</number>
- < </property>
- < <property name="verticalSpacing">
- < <number>14</number>
- < </property>
- < <property name="leftMargin">
- < <number>6</number>
- < </property>
- < <property name="topMargin">
- < <number>4</number>
- < </property>
- < <property name="rightMargin">
- < <number>6</number>
- < </property>
- < <item row="0" column="0">
- < <widget class="QLabel" name="labelCoinControlFeeText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Fee:</string>
- < </property>
- < <property name="margin">
- < <number>0</number>
- < </property>
- < </widget>
- < </item>
- < <item row="0" column="1">
- < <widget class="QLabel" name="labelCoinControlFee">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>0.00 BTC</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="0">
- < <widget class="QLabel" name="labelCoinControlLowOutputText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Low Output:</string>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="1">
- < <widget class="QLabel" name="labelCoinControlLowOutput">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>no</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < </layout>
- < </item>
- < <item>
- < <layout class="QFormLayout" name="formLayoutCoinControl4">
- < <property name="horizontalSpacing">
- < <number>10</number>
- < </property>
- < <property name="verticalSpacing">
- < <number>14</number>
- < </property>
- < <property name="leftMargin">
- < <number>6</number>
- < </property>
- < <property name="topMargin">
- < <number>4</number>
- < </property>
- < <property name="rightMargin">
- < <number>6</number>
- < </property>
- < <item row="0" column="0">
- < <widget class="QLabel" name="labelCoinControlAfterFeeText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>After Fee:</string>
- < </property>
- < <property name="margin">
- < <number>0</number>
- < </property>
- < </widget>
- < </item>
- < <item row="0" column="1">
- < <widget class="QLabel" name="labelCoinControlAfterFee">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>0.00 BTC</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="0">
- < <widget class="QLabel" name="labelCoinControlChangeText">
- < <property name="styleSheet">
- < <string notr="true">font-weight:bold;</string>
- < </property>
- < <property name="text">
- < <string>Change</string>
- < </property>
- < </widget>
- < </item>
- < <item row="1" column="1">
- < <widget class="QLabel" name="labelCoinControlChange">
- < <property name="font">
- < <font>
- < <family>Monospace</family>
- < <pointsize>10</pointsize>
- < </font>
- < </property>
- < <property name="cursor">
- < <cursorShape>IBeamCursor</cursorShape>
- < </property>
- < <property name="contextMenuPolicy">
- < <enum>Qt::ActionsContextMenu</enum>
- < </property>
- < <property name="text">
- < <string>0.00 BTC</string>
- < </property>
- < <property name="textInteractionFlags">
- < <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
- < </property>
- < </widget>
- < </item>
- < </layout>
- < </item>
- < </layout>
- < </item>
- < </layout>
- < </widget>
- < </item>
- < <item>
- < <layout class="QHBoxLayout" name="horizontalLayoutCoinControl4" stretch="0,0,0">
- < <property name="spacing">
- < <number>12</number>
- < </property>
- < <property name="sizeConstraint">
- < <enum>QLayout::SetDefaultConstraint</enum>
- < </property>
- < <property name="topMargin">
- < <number>5</number>
- < </property>
- < <property name="rightMargin">
- < <number>5</number>
- < </property>
- < <item>
- < <widget class="QCheckBox" name="checkBoxCoinControlChange">
- < <property name="text">
- < <string>custom change address</string>
- < </property>
- < </widget>
- < </item>
- < <item>
- < <widget class="QLineEdit" name="lineEditCoinControlChange">
- < <property name="enabled">
- < <bool>false</bool>
- < </property>
- < <property name="sizePolicy">
- < <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- < <horstretch>0</horstretch>
- < <verstretch>0</verstretch>
- < </sizepolicy>
- < </property>
- < </widget>
- < </item>
- < <item>
- < <widget class="QLabel" name="labelCoinControlChangeLabel">
- < <property name="sizePolicy">
- < <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
- < <horstretch>0</horstretch>
- < <verstretch>0</verstretch>
- < </sizepolicy>
- < </property>
- < <property name="minimumSize">
- < <size>
- < <width>0</width>
- < <height>0</height>
- < </size>
- < </property>
- < <property name="text">
- < <string/>
- < </property>
- < <property name="margin">
- < <number>3</number>
- < </property>
- < </widget>
- < </item>
- < </layout>
- < </item>
- < <item>
- < <spacer name="verticalSpacerCoinControl">
- < <property name="orientation">
- < <enum>Qt::Vertical</enum>
- < </property>
- < <property name="sizeHint" stdset="0">
- < <size>
- < <width>800</width>
- < <height>1</height>
- < </size>
- < </property>
- < </spacer>
- < </item>
- < </layout>
- < </item>
- < </layout>
- < </widget>
- < </item>
- ---
- > <layout class="QVBoxLayout" name="verticalLayout">
- 628c27
- < <width>830</width>
- ---
- > <width>666</width>
- diff -r Android-Token-V2/src/qt/optionsdialog.cpp ADTv2-source/src/qt/optionsdialog.cpp
- 151d150
- < mapper->addMapping(ui->coinControlFeatures, OptionsModel::CoinControlFeatures);
- diff -r Android-Token-V2/src/qt/optionsmodel.cpp ADTv2-source/src/qt/optionsmodel.cpp
- 50d49
- < fCoinControlFeatures = settings.value("fCoinControlFeatures", false).toBool();
- 174,175d172
- < case CoinControlFeatures:
- < return QVariant(fCoinControlFeatures);
- 245d241
- < emit transactionFeeChanged(nTransactionFee);
- 265,270d260
- < case CoinControlFeatures: {
- < fCoinControlFeatures = value.toBool();
- < settings.setValue("fCoinControlFeatures", fCoinControlFeatures);
- < emit coinControlFeaturesChanged(fCoinControlFeatures);
- < }
- < break;
- 284,288d273
- <
- < bool OptionsModel::getCoinControlFeatures()
- < {
- < return fCoinControlFeatures;
- < }
- diff -r Android-Token-V2/src/qt/optionsmodel.h ADTv2-source/src/qt/optionsmodel.h
- 33d32
- < CoinControlFeatures, // bool
- 53d51
- < bool getCoinControlFeatures();
- 61d58
- < bool fCoinControlFeatures;
- 65,66d61
- < void transactionFeeChanged(qint64);
- < void coinControlFeaturesChanged(bool);
- diff -r Android-Token-V2/src/qt/overviewpage.cpp ADTv2-source/src/qt/overviewpage.cpp
- 11d10
- < #include "askpassphrasedialog.h"
- 156,173d154
- < void OverviewPage::unlockWallet()
- < {
- < if(model->getEncryptionStatus() == WalletModel::Locked)
- < {
- < AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
- < dlg.setModel(model);
- < if(dlg.exec() == QDialog::Accepted)
- < {
- < ui->unlockWalletButton->setText(QString("Lock Wallet"));
- < }
- < }
- < else
- < {
- < model->setWalletLocked(true);
- < ui->unlockWalletButton->setText(QString("Unlock Wallet"));
- < }
- < }
- <
- 198,206c179
- <
- < // Unlock wallet button
- < WalletModel::EncryptionStatus status = model->getEncryptionStatus();
- < if(status == WalletModel::Unencrypted)
- < {
- < ui->unlockWalletButton->setDisabled(true);
- < }
- < connect(ui->unlockWalletButton, SIGNAL(clicked()), this, SLOT(unlockWallet()));
- < }
- ---
- > }
- diff -r Android-Token-V2/src/qt/overviewpage.h ADTv2-source/src/qt/overviewpage.h
- 32d31
- < void unlockWallet();
- Only in Android-Token-V2/src/qt/res/icons: bitcoin.icns
- Only in Android-Token-V2/src/qt/res/images: splash2.jpg
- Only in ADTv2-source/src/qt/res/images: splash2.png
- Only in Android-Token-V2/src/qt/res/images: wallet.png
- diff -r Android-Token-V2/src/qt/sendcoinsdialog.cpp ADTv2-source/src/qt/sendcoinsdialog.cpp
- 3d2
- < #include "init.h"
- 5d3
- < #include "addresstablemodel.h"
- 12,13c10
- < #include "coincontrol.h"
- < #include "coincontroldialog.h"
- ---
- > #include "base58.h"
- 19d15
- < #include <QClipboard>
- 34,38d29
- < #if QT_VERSION >= 0x040700
- < /* Do not move this to the XML file, Qt before 4.7 will choke on it */
- < ui->lineEditCoinControlChange->setPlaceholderText(tr("Enter an ADT address (e.g. AcX3L2Z3rKX32nZcnyoZtm8g4efiCyqssd)"));
- < #endif
- <
- 44,75d34
- <
- < // Coin Control
- < ui->lineEditCoinControlChange->setFont(GUIUtil::bitcoinAddressFont());
- < connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked()));
- < connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int)));
- < connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &)));
- < // Coin Control: clipboard actions
- < QAction *clipboardQuantityAction = new QAction(tr("Copy quantity"), this);
- < QAction *clipboardAmountAction = new QAction(tr("Copy amount"), this);
- < QAction *clipboardFeeAction = new QAction(tr("Copy fee"), this);
- < QAction *clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this);
- < QAction *clipboardBytesAction = new QAction(tr("Copy bytes"), this);
- < QAction *clipboardPriorityAction = new QAction(tr("Copy priority"), this);
- < QAction *clipboardLowOutputAction = new QAction(tr("Copy low output"), this);
- < QAction *clipboardChangeAction = new QAction(tr("Copy change"), this);
- < connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardQuantity()));
- < connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAmount()));
- < connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardFee()));
- < connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAfterFee()));
- < connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardBytes()));
- < connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardPriority()));
- < connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardLowOutput()));
- < connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardChange()));
- < ui->labelCoinControlQuantity->addAction(clipboardQuantityAction);
- < ui->labelCoinControlAmount->addAction(clipboardAmountAction);
- < ui->labelCoinControlFee->addAction(clipboardFeeAction);
- < ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction);
- < ui->labelCoinControlBytes->addAction(clipboardBytesAction);
- < ui->labelCoinControlPriority->addAction(clipboardPriorityAction);
- < ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction);
- < ui->labelCoinControlChange->addAction(clipboardChangeAction);
- <
- 96,102d54
- <
- < // Coin Control
- < connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels()));
- < connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool)));
- < connect(model->getOptionsModel(), SIGNAL(transactionFeeChanged(qint64)), this, SLOT(coinControlUpdateLabels()));
- < ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures());
- < coinControlUpdateLabels();
- 168,173c120
- < WalletModel::SendCoinsReturn sendstatus;
- < if (!model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures())
- < sendstatus = model->sendCoins(recipients);
- < else
- < sendstatus = model->sendCoins(recipients, CoinControlDialog::coinControl);
- <
- ---
- > WalletModel::SendCoinsReturn sendstatus = model->sendCoins(recipients);
- 216,217d162
- < CoinControlDialog::coinControl->UnSelectAll();
- < coinControlUpdateLabels();
- 253d197
- < connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
- 281,282d224
- <
- < coinControlUpdateLabels();
- 363,515d304
- < }
- < }
- <
- <
- < // Coin Control: copy label "Quantity" to clipboard
- < void SendCoinsDialog::coinControlClipboardQuantity()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlQuantity->text());
- < }
- <
- < // Coin Control: copy label "Amount" to clipboard
- < void SendCoinsDialog::coinControlClipboardAmount()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" ")));
- < }
- <
- < // Coin Control: copy label "Fee" to clipboard
- < void SendCoinsDialog::coinControlClipboardFee()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" ")));
- < }
- <
- < // Coin Control: copy label "After fee" to clipboard
- < void SendCoinsDialog::coinControlClipboardAfterFee()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")));
- < }
- <
- < // Coin Control: copy label "Bytes" to clipboard
- < void SendCoinsDialog::coinControlClipboardBytes()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlBytes->text());
- < }
- <
- < // Coin Control: copy label "Priority" to clipboard
- < void SendCoinsDialog::coinControlClipboardPriority()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlPriority->text());
- < }
- <
- < // Coin Control: copy label "Low output" to clipboard
- < void SendCoinsDialog::coinControlClipboardLowOutput()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlLowOutput->text());
- < }
- <
- < // Coin Control: copy label "Change" to clipboard
- < void SendCoinsDialog::coinControlClipboardChange()
- < {
- < QApplication::clipboard()->setText(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" ")));
- < }
- <
- < // Coin Control: settings menu - coin control enabled/disabled by user
- < void SendCoinsDialog::coinControlFeatureChanged(bool checked)
- < {
- < ui->frameCoinControl->setVisible(checked);
- <
- < if (!checked && model) // coin control features disabled
- < CoinControlDialog::coinControl->SetNull();
- < }
- <
- < // Coin Control: button inputs -> show actual coin control dialog
- < void SendCoinsDialog::coinControlButtonClicked()
- < {
- < CoinControlDialog dlg;
- < dlg.setModel(model);
- < dlg.exec();
- < coinControlUpdateLabels();
- < }
- <
- < // Coin Control: checkbox custom change address
- < void SendCoinsDialog::coinControlChangeChecked(int state)
- < {
- < if (model)
- < {
- < if (state == Qt::Checked)
- < CoinControlDialog::coinControl->destChange = CBitcoinAddress(ui->lineEditCoinControlChange->text().toStdString()).Get();
- < else
- < CoinControlDialog::coinControl->destChange = CNoDestination();
- < }
- <
- < ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked));
- < ui->labelCoinControlChangeLabel->setEnabled((state == Qt::Checked));
- < }
- <
- < // Coin Control: custom change address changed
- < void SendCoinsDialog::coinControlChangeEdited(const QString & text)
- < {
- < if (model)
- < {
- < CoinControlDialog::coinControl->destChange = CBitcoinAddress(text.toStdString()).Get();
- <
- < // label for the change address
- < ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:black;}");
- < if (text.isEmpty())
- < ui->labelCoinControlChangeLabel->setText("");
- < else if (!CBitcoinAddress(text.toStdString()).IsValid())
- < {
- < ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}");
- < ui->labelCoinControlChangeLabel->setText(tr("WARNING: Invalid ADT address"));
- < }
- < else
- < {
- < QString associatedLabel = model->getAddressTableModel()->labelForAddress(text);
- < if (!associatedLabel.isEmpty())
- < ui->labelCoinControlChangeLabel->setText(associatedLabel);
- < else
- < {
- < CPubKey pubkey;
- < CKeyID keyid;
- < CBitcoinAddress(text.toStdString()).GetKeyID(keyid);
- < if (model->getPubKey(keyid, pubkey))
- < ui->labelCoinControlChangeLabel->setText(tr("(no label)"));
- < else
- < {
- < ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}");
- < ui->labelCoinControlChangeLabel->setText(tr("WARNING: unknown change address"));
- < }
- < }
- < }
- < }
- < }
- <
- < // Coin Control: update labels
- < void SendCoinsDialog::coinControlUpdateLabels()
- < {
- < if (!model || !model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures())
- < return;
- <
- < // set pay amounts
- < CoinControlDialog::payAmounts.clear();
- < for(int i = 0; i < ui->entries->count(); ++i)
- < {
- < SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
- < if(entry)
- < CoinControlDialog::payAmounts.append(entry->getValue().amount);
- < }
- <
- < if (CoinControlDialog::coinControl->HasSelected())
- < {
- < // actual coin control calculation
- < CoinControlDialog::updateLabels(model, this);
- <
- < // show coin control stats
- < ui->labelCoinControlAutomaticallySelected->hide();
- < ui->widgetCoinControl->show();
- < }
- < else
- < {
- < // hide coin control stats
- < ui->labelCoinControlAutomaticallySelected->show();
- < ui->widgetCoinControl->hide();
- < ui->labelCoinControlInsuffFunds->hide();
- diff -r Android-Token-V2/src/qt/sendcoinsdialog.h ADTv2-source/src/qt/sendcoinsdialog.h
- 5d4
- < #include <QString>
- 53,65d51
- < void coinControlFeatureChanged(bool);
- < void coinControlButtonClicked();
- < void coinControlChangeChecked(int);
- < void coinControlChangeEdited(const QString &);
- < void coinControlUpdateLabels();
- < void coinControlClipboardQuantity();
- < void coinControlClipboardAmount();
- < void coinControlClipboardFee();
- < void coinControlClipboardAfterFee();
- < void coinControlClipboardBytes();
- < void coinControlClipboardPriority();
- < void coinControlClipboardLowOutput();
- < void coinControlClipboardChange();
- diff -r Android-Token-V2/src/qt/sendcoinsentry.cpp ADTv2-source/src/qt/sendcoinsentry.cpp
- 75,76d74
- < connect(ui->payAmount, SIGNAL(textChanged()), this, SIGNAL(payAmountChanged()));
- <
- diff -r Android-Token-V2/src/qt/sendcoinsentry.h ADTv2-source/src/qt/sendcoinsentry.h
- 42d41
- < void payAmountChanged();
- diff -r Android-Token-V2/src/qt/walletmodel.cpp ADTv2-source/src/qt/walletmodel.cpp
- 132,133c132
- < WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipient> &recipients,
- < const CCoinControl *coinControl)
- ---
- > WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipient> &recipients)
- 165,172c164
- < // we do not use getBalance() here, because some coins could be locked or coin control could be active
- < int64 nBalance = 0;
- < std::vector<COutput> vCoins;
- < wallet->AvailableCoins(vCoins, true, coinControl);
- < BOOST_FOREACH(const COutput& out, vCoins)
- < nBalance += out.tx->vout[out.i].nValue;
- <
- < if(total > nBalance)
- ---
- > if(total > getBalance())
- 177c169
- < if((total + nTransactionFee) > nBalance)
- ---
- > if((total + nTransactionFee) > getBalance())
- 197c189
- < bool fCreated = wallet->CreateTransaction(vecSend, wtx, keyChange, nFeeRequired, coinControl);
- ---
- > bool fCreated = wallet->CreateTransaction(vecSend, wtx, keyChange, nFeeRequired);
- 201c193
- < if((total + nFeeRequired) > nBalance)
- ---
- > if((total + nFeeRequired) > wallet->GetBalance())
- 391,458d382
- < }
- <
- < bool WalletModel::getPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
- < {
- < return wallet->GetPubKey(address, vchPubKeyOut);
- < }
- <
- < // returns a list of COutputs from COutPoints
- < void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
- < {
- < BOOST_FOREACH(const COutPoint& outpoint, vOutpoints)
- < {
- < if (!wallet->mapWallet.count(outpoint.hash)) continue;
- < COutput out(&wallet->mapWallet[outpoint.hash], outpoint.n, wallet->mapWallet[outpoint.hash].GetDepthInMainChain());
- < vOutputs.push_back(out);
- < }
- < }
- <
- < // AvailableCoins + LockedCoins grouped by wallet address (put change in one group with wallet address)
- < void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins) const
- < {
- < std::vector<COutput> vCoins;
- < wallet->AvailableCoins(vCoins);
- <
- < std::vector<COutPoint> vLockedCoins;
- <
- < // add locked coins
- < BOOST_FOREACH(const COutPoint& outpoint, vLockedCoins)
- < {
- < if (!wallet->mapWallet.count(outpoint.hash)) continue;
- < COutput out(&wallet->mapWallet[outpoint.hash], outpoint.n, wallet->mapWallet[outpoint.hash].GetDepthInMainChain());
- < vCoins.push_back(out);
- < }
- <
- < BOOST_FOREACH(const COutput& out, vCoins)
- < {
- < COutput cout = out;
- <
- < while (wallet->IsChange(cout.tx->vout[cout.i]) && cout.tx->vin.size() > 0 && wallet->IsMine(cout.tx->vin[0]))
- < {
- < if (!wallet->mapWallet.count(cout.tx->vin[0].prevout.hash)) break;
- < cout = COutput(&wallet->mapWallet[cout.tx->vin[0].prevout.hash], cout.tx->vin[0].prevout.n, 0);
- < }
- <
- < CTxDestination address;
- < if(!ExtractDestination(cout.tx->vout[cout.i].scriptPubKey, address)) continue;
- < mapCoins[CBitcoinAddress(address).ToString().c_str()].push_back(out);
- < }
- < }
- <
- < bool WalletModel::isLockedCoin(uint256 hash, unsigned int n) const
- < {
- < return false;
- < }
- <
- < void WalletModel::lockCoin(COutPoint& output)
- < {
- < return;
- < }
- <
- < void WalletModel::unlockCoin(COutPoint& output)
- < {
- < return;
- < }
- <
- < void WalletModel::listLockedCoins(std::vector<COutPoint>& vOutpts)
- < {
- < return;
- diff -r Android-Token-V2/src/qt/walletmodel.h ADTv2-source/src/qt/walletmodel.h
- 5,6d4
- < #include <vector>
- < #include <map>
- 14,19d11
- < class CKeyID;
- < class CPubKey;
- < class COutput;
- < class COutPoint;
- < class uint256;
- < class CCoinControl;
- 36a29
- >
- 78c71
- < SendCoinsReturn(StatusCode status=Aborted,
- ---
- > SendCoinsReturn(StatusCode status,
- 88,89c81
- < SendCoinsReturn sendCoins(const QList<SendCoinsRecipient> &recipients,
- < const CCoinControl *coinControl=NULL);
- ---
- > SendCoinsReturn sendCoins(const QList<SendCoinsRecipient> &recipients);
- 121,130d112
- <
- < bool getPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const;
- < void getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs);
- < void listCoins(std::map<QString, std::vector<COutput> >& mapCoins) const;
- <
- < bool isLockedCoin(uint256 hash, unsigned int n) const;
- < void lockCoin(COutPoint& output);
- < void unlockCoin(COutPoint& output);
- < void listLockedCoins(std::vector<COutPoint>& vOutpts);
- <
- 184d165
- <
- diff -r Android-Token-V2/src/rpcnet.cpp ADTv2-source/src/rpcnet.cpp
- 72,90d71
- < Value addnode(const Array& params, bool fHelp)
- <
- < {
- < string strCommand;
- < if (fHelp || params.size() != 1)
- < throw runtime_error(
- < "addnode <node>\n"
- < "Attempts to try a connection to a node once.\n"
- < "\nExample:\n"
- < "addnode 192.168.0.6:8333"
- < );
- <
- < string strNode = params[0].get_str();
- <
- < CAddress addr;
- < ConnectNode(addr, strNode.c_str());
- < return Value::null;
- < }
- <
- diff -r Android-Token-V2/src/scrypt_mine.h ADTv2-source/src/scrypt_mine.h
- 24,26c24,26
- < unsigned int scanhash_scrypt(block_header *pdata, void *scratchbuf,
- < uint32_t max_nonce, uint32_t &hash_count,
- < void *result, block_header *res_header);
- ---
- > unsigned int scanhash_scrypt(block_header *pdata, void *scratchbuf,
- > uint32_t max_nonce, uint32_t &hash_count,
- > void *result, block_header *res_header);
- diff -r Android-Token-V2/src/version.cpp ADTv2-source/src/version.cpp
- 41c41
- < # define GIT_COMMIT_DATE "$Format:%cD"
- ---
- > # define GIT_COMMIT_DATE "May-2014"
- diff -r Android-Token-V2/src/version.h ADTv2-source/src/version.h
- 28c28
- < static const int PROTOCOL_VERSION = 60006;
- ---
- > static const int PROTOCOL_VERSION = 60007;
- 39c39
- < static const int NOBLKS_VERSION_END = 60004;
- ---
- > static const int NOBLKS_VERSION_END = 60005;
- 42c42
- < static const int BIP0031_VERSION = 60000;
- ---
- > static const int BIP0031_VERSION = 60005;
- 47c47
- < #define DISPLAY_VERSION_MAJOR 2
- ---
- > #define DISPLAY_VERSION_MAJOR 3
- 49,50c49,50
- < #define DISPLAY_VERSION_REVISION 1
- < #define DISPLAY_VERSION_BUILD 1
- ---
- > #define DISPLAY_VERSION_REVISION 0
- > #define DISPLAY_VERSION_BUILD 0
- diff -r Android-Token-V2/src/wallet.cpp ADTv2-source/src/wallet.cpp
- 11d10
- < #include "coincontrol.h"
- 14,15d12
- < #include <boost/algorithm/string/replace.hpp>
- <
- 488,496d484
- <
- < // notify an external script when a wallet transaction comes in or is updated
- < std::string strCmd = GetArg("-walletnotify", "");
- <
- < if ( !strCmd.empty())
- < {
- < boost::replace_all(strCmd, "%s", wtxIn.GetHash().GetHex());
- < boost::thread t(runCommand, strCmd); // thread runs free
- < }
- 1009,1011c997
- < void CWallet::AvailableCoins(vector<COutput>& vCoins,
- < bool fOnlyConfirmed,
- < const CCoinControl *coinControl) const
- ---
- > void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed) const
- 1034,1035c1020
- < if (!(pcoin->IsSpent(i)) && IsMine(pcoin->vout[i]) && pcoin->vout[i].nValue > 0 &&
- < (!coinControl || !coinControl->HasSelected() || coinControl->IsSelected((*it).first, i)))
- ---
- > if (!(pcoin->IsSpent(i)) && IsMine(pcoin->vout[i]) && pcoin->vout[i].nValue > 0)
- 1041,1042c1026
- < static void ApproximateBestSubset(vector<pair<int64, pair<const CWalletTx*,unsigned int> > >vValue,
- < int64 nTotalLower, int64 nTargetValue,
- ---
- > static void ApproximateBestSubset(vector<pair<int64, pair<const CWalletTx*,unsigned int> > >vValue, int64 nTotalLower, int64 nTargetValue,
- 1107,1108c1091
- < bool CWallet::SelectCoinsMinConf(int64 nTargetValue, unsigned int nSpendTime, int nConfMine, int nConfTheirs, vector<COutput> vCoins,
- < set<pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const
- ---
- > bool CWallet::SelectCoinsMinConf(int64 nTargetValue, unsigned int nSpendTime, int nConfMine, int nConfTheirs, vector<COutput> vCoins, set<pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const
- 1213,1217c1196
- < bool CWallet::SelectCoins(int64 nTargetValue,
- < unsigned int nSpendTime,
- < set<pair<const CWalletTx*,unsigned int> >& setCoinsRet,
- < int64& nValueRet,
- < const CCoinControl* coinControl) const
- ---
- > bool CWallet::SelectCoins(int64 nTargetValue, unsigned int nSpendTime, set<pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const
- 1220,1231c1199
- < AvailableCoins(vCoins, true, coinControl);
- <
- < // coin control -> return all selected outputs (we want all selected to go into the transaction for sure)
- < if (coinControl && coinControl->HasSelected())
- < {
- < BOOST_FOREACH(const COutput& out, vCoins)
- < {
- < nValueRet += out.tx->vout[out.i].nValue;
- < setCoinsRet.insert(make_pair(out.tx, out.i));
- < }
- < return (nValueRet >= nTargetValue);
- < }
- ---
- > AvailableCoins(vCoins);
- 1239,1243c1207,1209
- < bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend,
- < CWalletTx& wtxNew,
- < CReserveKey& reservekey,
- < int64& nFeeRet,
- < const CCoinControl* coinControl)
- ---
- >
- >
- > bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet)
- 1278c1244
- < if (!SelectCoins(nTotalValue, wtxNew.nTime, setCoins, nValueIn, coinControl))
- ---
- > if (!SelectCoins(nTotalValue, wtxNew.nTime, setCoins, nValueIn))
- 1305a1272,1282
- > // Note: We use a new key here to keep it from being obvious which side is the change.
- > // The drawback is that by not reusing a previous key, the change may be lost if a
- > // backup is restored, if the backup doesn't have the new private key for the change.
- > // If we reused the old key, it would be possible to add code to look for and
- > // rediscover unknown transactions that were written with keys of ours to recover
- > // post-backup change.
- >
- > // Reserve a new key pair from key pool
- > CPubKey vchPubKey = reservekey.GetReservedKey();
- > // assert(mapKeys.count(vchPubKey));
- >
- 1310,1330c1287
- <
- < // coin control: send change to custom address
- < if (coinControl && !boost::get<CNoDestination>(&coinControl->destChange))
- < scriptChange.SetDestination(coinControl->destChange);
- <
- < // no coin control: send change to newly generated address
- < else
- < {
- < // Note: We use a new key here to keep it from being obvious which side is the change.
- < // The drawback is that by not reusing a previous key, the change may be lost if a
- < // backup is restored, if the backup doesn't have the new private key for the change.
- < // If we reused the old key, it would be possible to add code to look for and
- < // rediscover unknown transactions that were written with keys of ours to recover
- < // post-backup change.
- <
- < // Reserve a new key pair from key pool
- < CPubKey vchPubKey = reservekey.GetReservedKey();
- <
- < scriptChange.SetDestination(vchPubKey.GetID());
- < }
- <
- ---
- > scriptChange.SetDestination(vchPubKey.GetID());
- 1357c1314
- < int64 nMinFee = wtxNew.GetMinFee(1, false, GMF_SEND, nBytes);
- ---
- > int64 nMinFee = wtxNew.GetMinFee(1, false, GMF_SEND);
- 1376,1381c1333
- < bool CWallet::CreateTransaction(CScript scriptPubKey,
- < int64 nValue,
- < CWalletTx& wtxNew,
- < CReserveKey& reservekey,
- < int64& nFeeRet,
- < const CCoinControl* coinControl)
- ---
- > bool CWallet::CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet)
- 1385c1337
- < return CreateTransaction(vecSend, wtxNew, reservekey, nFeeRet, coinControl);
- ---
- > return CreateTransaction(vecSend, wtxNew, reservekey, nFeeRet);
- 1394,1395c1346
- < unsigned int nHeight = GetLastBlockIndex(pindexBest, false)->nHeight+1;
- < int64 nCombineThreshold = GetProofOfWorkReward(nHeight) / 3;
- ---
- > int64 nCombineThreshold = GetProofOfWorkReward(GetLastBlockIndex(pindexBest, false)->nBits) / 3;
- 1637c1588
- < string CWallet::SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee, std::string strTxComment)
- ---
- > string CWallet::SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee)
- 1676c1627
- < string CWallet::SendMoneyToDestination(const CTxDestination& address, int64 nValue, CWalletTx& wtxNew, bool fAskFee, std::string strTxComment)
- ---
- > string CWallet::SendMoneyToDestination(const CTxDestination& address, int64 nValue, CWalletTx& wtxNew, bool fAskFee)
- 1688c1639
- < return SendMoney(scriptPubKey, nValue, wtxNew, fAskFee, strTxComment);
- ---
- > return SendMoney(scriptPubKey, nValue, wtxNew, fAskFee);
- diff -r Android-Token-V2/src/wallet.h ADTv2-source/src/wallet.h
- 26d25
- < class CCoinControl;
- 73,77c72
- < bool SelectCoins(int64 nTargetValue,
- < unsigned int nSpendTime,
- < std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet,
- < int64& nValueRet,
- < const CCoinControl *coinControl=NULL) const;
- ---
- > bool SelectCoins(int64 nTargetValue, unsigned int nSpendTime, std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const;
- 131,133c126
- < void AvailableCoins(std::vector<COutput>& vCoins,
- < bool fOnlyConfirmed=true,
- < const CCoinControl *coinControl=NULL) const;
- ---
- > void AvailableCoins(std::vector<COutput>& vCoins, bool fOnlyConfirmed=true) const;
- 184,194c177,178
- < bool CreateTransaction(const std::vector<std::pair<CScript, int64> >& vecSend,
- < CWalletTx& wtxNew,
- < CReserveKey& reservekey,
- < int64& nFeeRet,
- < const CCoinControl *coinControl=NULL);
- < bool CreateTransaction(CScript scriptPubKey,
- < int64 nValue,
- < CWalletTx& wtxNew,
- < CReserveKey& reservekey,
- < int64& nFeeRet,
- < const CCoinControl *coinControl=NULL);
- ---
- > bool CreateTransaction(const std::vector<std::pair<CScript, int64> >& vecSend, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet);
- > bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet);
- 197,198c181,182
- < std::string SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false, std::string strTxComment = "");
- < std::string SendMoneyToDestination(const CTxDestination &address, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false, std::string strTxComment = "");
- ---
- > std::string SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false);
- > std::string SendMoneyToDestination(const CTxDestination &address, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false);
Advertisement
Add Comment
Please, Sign In to add comment