+ validate global-fees
This commit is contained in:
parent
209e4f6408
commit
7cd4cc6eac
1 changed files with 30 additions and 1 deletions
|
|
@ -138,8 +138,37 @@ let keys content =
|
||||||
in
|
in
|
||||||
|
|
||||||
(* validate global-fees *)
|
(* validate global-fees *)
|
||||||
|
let* () =
|
||||||
|
v.global_fees
|
||||||
|
|> list_iter
|
||||||
|
(fun
|
||||||
|
GlobalFees.
|
||||||
|
{
|
||||||
|
start_date;
|
||||||
|
end_date;
|
||||||
|
history_fee;
|
||||||
|
account_fee;
|
||||||
|
purse_fee;
|
||||||
|
history_expiration;
|
||||||
|
purse_account_limit;
|
||||||
|
purse_timeout;
|
||||||
|
master_sig;
|
||||||
|
}
|
||||||
|
->
|
||||||
|
let open Signatures.GlobalFees in
|
||||||
|
verify v.master_public_key master_sig
|
||||||
|
{
|
||||||
|
start_date;
|
||||||
|
end_date;
|
||||||
|
purse_timeout;
|
||||||
|
history_expiration;
|
||||||
|
history_fee;
|
||||||
|
account_fee;
|
||||||
|
purse_fee;
|
||||||
|
purse_account_limit;
|
||||||
|
})
|
||||||
|
in
|
||||||
|
|
||||||
(* validate list_issue_date *)
|
|
||||||
(* validate auditors *)
|
(* validate auditors *)
|
||||||
Ok ()
|
Ok ()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue