oxen-core/src/wallet3/block.hpp

20 lines
355 B
C++
Raw Permalink Normal View History

#pragma once
#include <crypto/crypto.h>
2023-04-13 15:50:13 +02:00
#include <cryptonote_basic/cryptonote_basic.h>
#include "block_tx.hpp"
2023-04-13 15:50:13 +02:00
namespace wallet {
struct Block {
int64_t height;
crypto::hash hash;
int64_t timestamp;
std::vector<BlockTX> transactions;
2023-04-13 15:50:13 +02:00
bool operator<(const Block& other) { return height < other.height; }
};
} // namespace wallet