Shell: Fix block_*_cache initialization

This commit is contained in:
Pierre Boutillier 2018-06-28 13:14:17 +02:00 committed by Benjamin Canou
parent 25b892b709
commit f99789b255

View File

@ -12,8 +12,11 @@ module Bounded_encoding = struct
open Data_encoding open Data_encoding
let block_header_max_size = ref None let block_header_max_size = ref None
let block_header_cache = ref Block_header.encoding let block_header_cache =
let block_locator_cache = ref Block_locator.encoding ref (Block_header.bounded_encoding ?max_size:!block_header_max_size ())
let block_locator_cache =
ref (Block_locator.bounded_encoding
?max_header_size:!block_header_max_size ())
let update_block_header_encoding () = let update_block_header_encoding () =
block_header_cache := block_header_cache :=