This commit is contained in:
parent
2bc362d9e6
commit
23d893473e
|
@ -162,7 +162,7 @@ bool PendingTransactionImpl::commit(const std::string &filename, bool overwrite)
|
||||||
return m_status == Status_Ok;
|
return m_status == Status_Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string PendingTransactionImpl::commit_string()
|
std::string PendingTransactionImpl::commitToString()
|
||||||
{
|
{
|
||||||
|
|
||||||
std::string tx;
|
std::string tx;
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
~PendingTransactionImpl();
|
~PendingTransactionImpl();
|
||||||
int status() const override;
|
int status() const override;
|
||||||
std::string errorString() const override;
|
std::string errorString() const override;
|
||||||
std::string commit_string() override;
|
std::string commitToString() override;
|
||||||
bool commit(const std::string &filename = "", bool overwrite = false) override;
|
bool commit(const std::string &filename = "", bool overwrite = false) override;
|
||||||
uint64_t amount() const override;
|
uint64_t amount() const override;
|
||||||
uint64_t dust() const override;
|
uint64_t dust() const override;
|
||||||
|
|
|
@ -90,7 +90,7 @@ struct PendingTransaction
|
||||||
virtual int status() const = 0;
|
virtual int status() const = 0;
|
||||||
virtual std::string errorString() const = 0;
|
virtual std::string errorString() const = 0;
|
||||||
// return string of transaction gives the same content which would be saved to file with commit(filename)
|
// return string of transaction gives the same content which would be saved to file with commit(filename)
|
||||||
virtual std::string commit_string() = 0;
|
virtual std::string commitToString() = 0;
|
||||||
// commit transaction or save to file if filename is provided.
|
// commit transaction or save to file if filename is provided.
|
||||||
virtual bool commit(const std::string &filename = "", bool overwrite = false) = 0;
|
virtual bool commit(const std::string &filename = "", bool overwrite = false) = 0;
|
||||||
virtual uint64_t amount() const = 0;
|
virtual uint64_t amount() const = 0;
|
||||||
|
|
Loading…
Reference in New Issue