1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00

net-p2p/qtum: Upgrade from 0.15.3 to 0.16.0

This commit is contained in:
Vasil Dimov 2018-09-15 19:33:16 +00:00
parent df326ce673
commit 294a55568d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=479844
3 changed files with 4 additions and 268 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= qtum
PORTVERSION= 0.15.3
PORTREVISION= 1
PORTVERSION= 0.16.0
DISTVERSIONPREFIX= mainnet-ignition-v
CATEGORIES= net-p2p finance

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1533740100
SHA256 (qtumproject-qtum-mainnet-ignition-v0.15.3_GH0.tar.gz) = 0ef0ea73e563048797b1ff08b689a5469fee16faf803a172d155018d8b0ef030
SIZE (qtumproject-qtum-mainnet-ignition-v0.15.3_GH0.tar.gz) = 13182417
TIMESTAMP = 1536992752
SHA256 (qtumproject-qtum-mainnet-ignition-v0.16.0_GH0.tar.gz) = cd35b3aa8537a76d5fa188bd26011bea9084572c33e72a0e584ced75683808b5
SIZE (qtumproject-qtum-mainnet-ignition-v0.16.0_GH0.tar.gz) = 12229638
SHA256 (qtumproject-cpp-eth-qtum-d6081ecc98e3c5f4701363_GH0.tar.gz) = 62c858543510aaf656ce0a247e26fbce4a9b11d1fa424f40e9ff0fdc822b4b34
SIZE (qtumproject-cpp-eth-qtum-d6081ecc98e3c5f4701363_GH0.tar.gz) = 1114149

View File

@ -1,263 +0,0 @@
--- src/wallet/wallet.h.orig 2018-05-25 13:32:42 UTC
+++ src/wallet/wallet.h
@@ -668,7 +668,130 @@ class CAccountingEntry (private)
std::vector<char> _ssExtra;
};
+/** Contract book data */
+class CContractBookData
+{
+public:
+ std::string name;
+ std::string abi;
+ CContractBookData()
+ {}
+};
+
+class CTokenTx
+{
+public:
+ static const int CURRENT_VERSION=1;
+ int nVersion;
+ std::string strContractAddress;
+ std::string strSenderAddress;
+ std::string strReceiverAddress;
+ uint256 nValue;
+ uint256 transactionHash;
+
+ // Wallet data for token transaction
+ int64_t nCreateTime;
+ uint256 blockHash;
+ int64_t blockNumber;
+ std::string strLabel;
+
+ CTokenTx()
+ {
+ SetNull();
+ }
+
+ ADD_SERIALIZE_METHODS;
+
+ template <typename Stream, typename Operation>
+ inline void SerializationOp(Stream& s, Operation ser_action) {
+ if (!(s.GetType() & SER_GETHASH))
+ {
+ READWRITE(nVersion);
+ READWRITE(nCreateTime);
+ READWRITE(blockHash);
+ READWRITE(blockNumber);
+ READWRITE(LIMITED_STRING(strLabel, 65536));
+ }
+ READWRITE(strContractAddress);
+ READWRITE(strSenderAddress);
+ READWRITE(strReceiverAddress);
+ READWRITE(nValue);
+ READWRITE(transactionHash);
+ }
+
+ void SetNull()
+ {
+ nVersion = CTokenTx::CURRENT_VERSION;
+ nCreateTime = 0;
+ strContractAddress = "";
+ strSenderAddress = "";
+ strReceiverAddress = "";
+ nValue.SetNull();
+ transactionHash.SetNull();
+ blockHash.SetNull();
+ blockNumber = -1;
+ strLabel = "";
+ }
+
+ uint256 GetHash() const;
+};
+
+class CTokenInfo
+{
+public:
+ static const int CURRENT_VERSION=1;
+ int nVersion;
+ std::string strContractAddress;
+ std::string strTokenName;
+ std::string strTokenSymbol;
+ uint8_t nDecimals;
+ std::string strSenderAddress;
+
+ // Wallet data for token transaction
+ int64_t nCreateTime;
+ uint256 blockHash;
+ int64_t blockNumber;
+
+ CTokenInfo()
+ {
+ SetNull();
+ }
+
+ ADD_SERIALIZE_METHODS;
+
+ template <typename Stream, typename Operation>
+ inline void SerializationOp(Stream& s, Operation ser_action) {
+ if (!(s.GetType() & SER_GETHASH))
+ {
+ READWRITE(nVersion);
+ READWRITE(nCreateTime);
+ READWRITE(strTokenName);
+ READWRITE(strTokenSymbol);
+ READWRITE(blockHash);
+ READWRITE(blockNumber);
+ }
+ READWRITE(nDecimals);
+ READWRITE(strContractAddress);
+ READWRITE(strSenderAddress);
+ }
+
+ void SetNull()
+ {
+ nVersion = CTokenInfo::CURRENT_VERSION;
+ nCreateTime = 0;
+ strContractAddress = "";
+ strTokenName = "";
+ strTokenSymbol = "";
+ nDecimals = 0;
+ strSenderAddress = "";
+ blockHash.SetNull();
+ blockNumber = -1;
+ }
+
+ uint256 GetHash() const;
+};
+
/**
* A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,
* and provides the ability to create new transactions.
@@ -1304,129 +1427,5 @@ bool CWallet::DummySignTx(CMutableTransaction &txNew,
}
return true;
}
-
-class CTokenInfo
-{
-public:
- static const int CURRENT_VERSION=1;
- int nVersion;
- std::string strContractAddress;
- std::string strTokenName;
- std::string strTokenSymbol;
- uint8_t nDecimals;
- std::string strSenderAddress;
-
- // Wallet data for token transaction
- int64_t nCreateTime;
- uint256 blockHash;
- int64_t blockNumber;
-
- CTokenInfo()
- {
- SetNull();
- }
-
- ADD_SERIALIZE_METHODS;
-
- template <typename Stream, typename Operation>
- inline void SerializationOp(Stream& s, Operation ser_action) {
- if (!(s.GetType() & SER_GETHASH))
- {
- READWRITE(nVersion);
- READWRITE(nCreateTime);
- READWRITE(strTokenName);
- READWRITE(strTokenSymbol);
- READWRITE(blockHash);
- READWRITE(blockNumber);
- }
- READWRITE(nDecimals);
- READWRITE(strContractAddress);
- READWRITE(strSenderAddress);
- }
-
- void SetNull()
- {
- nVersion = CTokenInfo::CURRENT_VERSION;
- nCreateTime = 0;
- strContractAddress = "";
- strTokenName = "";
- strTokenSymbol = "";
- nDecimals = 0;
- strSenderAddress = "";
- blockHash.SetNull();
- blockNumber = -1;
- }
-
- uint256 GetHash() const;
-};
-
-class CTokenTx
-{
-public:
- static const int CURRENT_VERSION=1;
- int nVersion;
- std::string strContractAddress;
- std::string strSenderAddress;
- std::string strReceiverAddress;
- uint256 nValue;
- uint256 transactionHash;
-
- // Wallet data for token transaction
- int64_t nCreateTime;
- uint256 blockHash;
- int64_t blockNumber;
- std::string strLabel;
-
- CTokenTx()
- {
- SetNull();
- }
-
- ADD_SERIALIZE_METHODS;
-
- template <typename Stream, typename Operation>
- inline void SerializationOp(Stream& s, Operation ser_action) {
- if (!(s.GetType() & SER_GETHASH))
- {
- READWRITE(nVersion);
- READWRITE(nCreateTime);
- READWRITE(blockHash);
- READWRITE(blockNumber);
- READWRITE(LIMITED_STRING(strLabel, 65536));
- }
- READWRITE(strContractAddress);
- READWRITE(strSenderAddress);
- READWRITE(strReceiverAddress);
- READWRITE(nValue);
- READWRITE(transactionHash);
- }
-
- void SetNull()
- {
- nVersion = CTokenTx::CURRENT_VERSION;
- nCreateTime = 0;
- strContractAddress = "";
- strSenderAddress = "";
- strReceiverAddress = "";
- nValue.SetNull();
- transactionHash.SetNull();
- blockHash.SetNull();
- blockNumber = -1;
- strLabel = "";
- }
-
- uint256 GetHash() const;
-};
-
-/** Contract book data */
-class CContractBookData
-{
-public:
- std::string name;
- std::string abi;
-
- CContractBookData()
- {}
-};
#endif // BITCOIN_WALLET_WALLET_H