Skip to content

Commit

Permalink
Merge pull request #577 from Zeegomo/add-block-date
Browse files Browse the repository at this point in the history
Add block_date method to ApplyBlockLedger
  • Loading branch information
Mikhail Zabaluev committed Jun 16, 2021
2 parents 01069e2 + 5649063 commit c6e2faa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain-impl-mockchain/src/ledger/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,10 @@ impl Ledger {
}

impl ApplyBlockLedger {
pub fn block_date(&self) -> BlockDate {
self.block_date
}

pub fn apply_fragment(&self, fragment: &Fragment) -> Result<Self, Error> {
let ledger = self
.ledger
Expand Down

0 comments on commit c6e2faa

Please sign in to comment.