Tests: add Op.seed_nonce_revelation
This commit is contained in:
parent
dde6addbfb
commit
b2a09d3edc
@ -206,3 +206,12 @@ let double_baking ctxt bh1 bh2 =
|
||||
signature = None ;
|
||||
} ;
|
||||
}
|
||||
|
||||
let seed_nonce_revelation ctxt level nonce =
|
||||
return
|
||||
{ shell = { branch = Context.branch ctxt } ;
|
||||
protocol_data = Operation_data {
|
||||
contents = Single (Seed_nonce_revelation { level ; nonce }) ;
|
||||
signature = None ;
|
||||
} ;
|
||||
}
|
||||
|
@ -74,3 +74,7 @@ val activation:
|
||||
Context.t ->
|
||||
Signature.Public_key_hash.t -> Blinded_public_key_hash.activation_code ->
|
||||
Operation.packed tzresult Lwt.t
|
||||
|
||||
(** Reveals a seed_nonce that was previously committed at a certain level *)
|
||||
val seed_nonce_revelation:
|
||||
Context.t -> Raw_level.t -> Nonce.t -> Operation.packed tzresult Lwt.t
|
||||
|
Loading…
Reference in New Issue
Block a user