introduce VersionedCoinbase to add api stability around build_coinbase

This commit is contained in:
antiochp
2019-08-20 10:06:06 +01:00
parent 3efe36eb7d
commit 1a6b8aff3b
8 changed files with 84 additions and 32 deletions
-12
View File
@@ -14,7 +14,6 @@
//! Types specific to the wallet api, mostly argument serialization
use crate::grin_core::core::{Output, TxKernel};
use crate::grin_core::libtx::secp_ser;
use crate::grin_keychain::Identifier;
use crate::grin_util::secp::pedersen;
@@ -179,17 +178,6 @@ impl BlockFees {
}
}
/// Response to build a coinbase output.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct CbData {
/// Output
pub output: Output,
/// Kernel
pub kernel: TxKernel,
/// Key Id
pub key_id: Option<Identifier>,
}
/// Map Outputdata to commits
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct OutputCommitMapping {