31 #ifndef LEDGER_CORE_BITCOINLIKETRANSACTIONDATABASEHELPER_H 32 #define LEDGER_CORE_BITCOINLIKETRANSACTIONDATABASEHELPER_H 35 #include <wallet/bitcoin/explorers/BitcoinLikeBlockchainExplorer.hpp> 41 static bool transactionExists(soci::session& sql,
const std::string& btcTxUid);
42 static std::string putTransaction(soci::session& sql,
43 const std::string &accountUid,
45 static inline void insertOutput(soci::session& sql,
46 const std::string& btcTxUid,
47 const std::string &accountUid,
48 const std::string& transactionHash,
50 static inline void insertInput(soci::session& sql,
51 const std::string& btcTxUid,
52 const std::string& accountUid,
53 const std::string& transactionHash,
56 static std::string createInputUid(
const std::string& accountUid, int32_t previousOutputIndex,
const std::string& previousTxHash,
const std::string& coinbase);
57 static std::string createBitcoinTransactionUid(
const std::string& accountUid,
const std::string& txHash);
58 static bool getTransactionByHash(soci::session &sql,
59 const std::string &hash,
60 const std::string &accountUid,
63 static inline bool inflateTransaction(soci::session& sql,
65 const std::string &accountUid,
72 #endif //LEDGER_CORE_BITCOINLIKETRANSACTIONDATABASEHELPER_H Definition: BitcoinLikeBlockchainExplorer.hpp:78
Definition: BitcoinLikeBlockchainExplorer.hpp:65
Definition: BitcoinLikeTransactionDatabaseHelper.h:39
Definition: Account.cpp:8