mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
[1.1.0] Serialize Blockfees struct consistenly with grin-wallet (#2717)
* ser blockfees consistently with grin-wallet * rustfmt
This commit is contained in:
parent
1dd9a87452
commit
bd6c73417d
1 changed files with 3 additions and 0 deletions
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue