[1.1.0] Serialize Blockfees struct consistenly with grin-wallet (#2717)

* ser blockfees consistently with grin-wallet

* rustfmt
This commit is contained in:
Yeastplume 2019-03-29 08:45:56 +00:00 committed by GitHub
parent 1dd9a87452
commit bd6c73417d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ use crate::chain;
use crate::common::types::Error;
use crate::core::core::verifier_cache::VerifierCache;
use crate::core::core::{Output, TxKernel};
use crate::core::libtx::secp_ser;
use crate::core::{consensus, core, global};
use crate::keychain::{ExtKeychain, Identifier, Keychain};
use crate::pool;
@ -36,8 +37,10 @@ use crate::pool;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct BlockFees {
/// fees
#[serde(with = "secp_ser::string_or_u64")]
pub fees: u64,
/// height
#[serde(with = "secp_ser::string_or_u64")]
pub height: u64,
/// key id
pub key_id: Option<Identifier>,