translate to/from TransactionV2 correctly in owner api and foreign api

This commit is contained in:
antiochp
2019-08-19 16:35:54 +01:00
parent 3c45dad846
commit ec3d08a710
6 changed files with 72 additions and 55 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ use crate::api;
use crate::chain;
use crate::chain::Chain;
use crate::core;
use crate::core::core::{OutputFeatures, OutputIdentifier, Transaction};
use crate::core::core::{OutputFeatures, OutputIdentifier, Transaction, TxKernel};
use crate::core::{consensus, global, pow};
use crate::keychain;
use crate::libwallet;
@@ -82,7 +82,7 @@ pub fn add_block_with_reward(chain: &Chain, txs: Vec<&Transaction>, reward: CbDa
&prev,
txs.into_iter().cloned().collect(),
next_header_info.clone().difficulty,
(reward.output, reward.kernel),
(reward.output, TxKernel::from(&reward.kernel)),
)
.unwrap();
b.header.timestamp = prev.timestamp + Duration::seconds(60);