ligo/src/proto/alpha/fitness_storage.ml
Grégoire Henry a731a47d3c Proto: explicit fitness/timestamp in the signature
This remove the data fomr the context where they "duplicate" the
block header.
2017-04-12 12:39:04 +02:00

14 lines
763 B
OCaml

(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2016. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
let current = Storage.current_fitness
let increase ctxt =
let fitness = current ctxt in
Storage.set_current_fitness ctxt (Int64.succ fitness)