6 #ifndef RAVEN_ADDRESSINDEX_H 7 #define RAVEN_ADDRESSINDEX_H 13 static const std::string RVN =
"RVN";
23 return 57 + asset.size();
25 template<
typename Stream>
33 template<
typename Stream>
44 hashBytes = addressHash;
52 hashBytes = addressHash;
78 template <
typename Stream,
typename Operation>
87 script = scriptPubKey;
102 return (satoshis == -1);
117 return 34 + asset.size();
119 template<
typename Stream>
132 template<
typename Stream>
146 uint256 txid,
size_t indexValue,
bool isSpending) {
148 hashBytes = addressHash;
150 blockHeight = height;
151 txindex = blockindex;
154 spending = isSpending;
158 uint256 txid,
size_t indexValue,
bool isSpending) {
160 hashBytes = addressHash;
162 blockHeight = height;
163 txindex = blockindex;
166 spending = isSpending;
193 template<
typename Stream>
198 template<
typename Stream>
206 hashBytes = addressHash;
225 return 21 + asset.size();
227 template<
typename Stream>
233 template<
typename Stream>
242 hashBytes = addressHash;
248 hashBytes = addressHash;
270 return 25 + asset.size();
272 template<
typename Stream>
279 template<
typename Stream>
289 hashBytes = addressHash;
291 blockHeight = height;
296 hashBytes = addressHash;
298 blockHeight = height;
345 uint256 hash,
unsigned int i,
int s) {
347 addressBytes = addressHash;
356 addressBytes = addressHash;
365 addressBytes = addressHash;
374 addressBytes = addressHash;
409 #endif // RAVEN_ADDRESSINDEX_H
CAddressIndexIteratorKey()
void Unserialize(Stream &s)
size_t GetSerializeSize() const
void Unserialize(Stream &s)
uint8_t ser_readdata8(Stream &s)
CAddressUnspentKey(unsigned int addressType, uint160 addressHash, uint256 txid, size_t indexValue)
void SerializationOp(Stream &s, Operation ser_action)
CAddressIndexIteratorHeightKey()
void ser_writedata32(Stream &s, uint32_t obj)
void Unserialize(Stream &s)
void Serialize(Stream &s) const
void Unserialize(Stream &s)
CMempoolAddressDeltaKey(int addressType, uint160 addressHash, uint256 hash, unsigned int i, int s)
void Serialize(Stream &s) const
void Serialize(Stream &s) const
CAddressIndexKey(unsigned int addressType, uint160 addressHash, std::string assetName, int height, int blockindex, uint256 txid, size_t indexValue, bool isSpending)
CMempoolAddressDelta(int64_t t, CAmount a)
CMempoolAddressDelta(int64_t t, CAmount a, uint256 hash, unsigned int out)
int64_t CAmount
Amount in corbies (Can be negative)
CAddressIndexIteratorAssetKey(unsigned int addressType, uint160 addressHash, std::string assetName)
void Unserialize(Stream &s)
CAddressIndexIteratorHeightKey(unsigned int addressType, uint160 addressHash, int height)
uint32_t ser_readdata32(Stream &s)
CAddressUnspentValue(CAmount sats, CScript scriptPubKey, int height)
CMempoolAddressDeltaKey(int addressType, uint160 addressHash)
void Serialize(Stream &s) const
CAddressIndexIteratorKey(unsigned int addressType, uint160 addressHash)
void ser_writedata32be(Stream &s, uint32_t obj)
void Serialize(Stream &s) const
Implements a drop-in replacement for std::vector<T> which stores up to N elements directly (without h...
void Unserialize(Stream &s)
size_t GetSerializeSize() const
Serialized script, used inside transaction inputs and outputs.
size_t GetSerializeSize() const
CAddressIndexIteratorAssetKey()
uint32_t ser_readdata32be(Stream &s)
CAddressIndexIteratorHeightKey(unsigned int addressType, uint160 addressHash, std::string assetName, int height)
size_t GetSerializeSize() const
CMempoolAddressDeltaKey(int addressType, uint160 addressHash, std::string assetName, uint256 hash, unsigned int i, int s)
CMempoolAddressDeltaKey(int addressType, uint160 addressHash, std::string assetName)
CAddressIndexKey(unsigned int addressType, uint160 addressHash, int height, int blockindex, uint256 txid, size_t indexValue, bool isSpending)
size_t GetSerializeSize() const
CAddressIndexIteratorAssetKey(unsigned int addressType, uint160 addressHash)
CAddressUnspentKey(unsigned int addressType, uint160 addressHash, std::string assetName, uint256 txid, size_t indexValue)
bool operator()(const CMempoolAddressDeltaKey &a, const CMempoolAddressDeltaKey &b) const
void ser_writedata8(Stream &s, uint8_t obj)
void Serialize(Stream &s) const