[WIP] Store completed transactions in files instead of DB (#2148)

Store completed transactions in files instead of DB
This commit is contained in:
Yeastplume
2018-12-14 16:24:53 +00:00
committed by GitHub
parent 32a7c309e7
commit 8e678058f1
11 changed files with 141 additions and 80 deletions
+1 -1
View File
@@ -409,7 +409,7 @@ pub fn repost(
) -> Result<(), Error> {
controller::owner_single_use(wallet.clone(), |api| {
let (_, txs) = api.retrieve_txs(true, Some(args.id), None)?;
let stored_tx = txs[0].get_stored_tx();
let stored_tx = api.get_stored_tx(&txs[0])?;
if stored_tx.is_none() {
error!(
"Transaction with id {} does not have transaction data. Not reposting.",