blockchain_db: make the indexing base a BlockchainDB virtual function

This commit is contained in:
moneromooo-monero 2015-12-05 18:41:29 +00:00
parent a702118426
commit a3c5ca077c
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 7 additions and 3 deletions

View file

@ -79,6 +79,7 @@ public:
virtual std::vector<transaction> get_tx_list(const std::vector<crypto::hash>& hlist) const { return std::vector<transaction>(); }
virtual uint64_t get_tx_block_height(const crypto::hash& h) const { return 0; }
virtual uint64_t get_num_outputs(const uint64_t& amount) const { return 1; }
virtual uint64_t get_indexing_base() const { return 0; }
virtual output_data_t get_output_key(const uint64_t& amount, const uint64_t& index) { return output_data_t(); }
virtual output_data_t get_output_key(const uint64_t& global_index) const { return output_data_t(); }
virtual tx_out_index get_output_tx_and_index_from_global(const uint64_t& index) const { return tx_out_index(); }