Shell: fix test network creation

This commit is contained in:
Grégoire Henry 2018-05-10 16:39:54 +02:00 committed by Benjamin Canou
parent a0a2d6b004
commit ccad901f33

View File

@ -885,7 +885,10 @@ end
let may_create_chain state chain genesis =
Chain.get state chain >>= function
| Ok chain -> Lwt.return chain
| Error _ -> Chain.create state genesis
| Error _ ->
Chain.create
~allow_forked_chain:true
state genesis
let read
?patch_context