From 89326d0895de54356c1f1574fe9860b25e843c17 Mon Sep 17 00:00:00 2001 From: Alistair Singh Date: Thu, 1 Feb 2024 00:53:23 +0200 Subject: [PATCH] remove checks --- relayer/relays/beefy/polkadot-listener.go | 2 +- relayer/relays/beefy/scanner.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/relayer/relays/beefy/polkadot-listener.go b/relayer/relays/beefy/polkadot-listener.go index d78ae2ac01..0dbf11d81c 100644 --- a/relayer/relays/beefy/polkadot-listener.go +++ b/relayer/relays/beefy/polkadot-listener.go @@ -99,7 +99,7 @@ func (li *PolkadotListener) scanCommitments( }, "validatorSetID": currentValidatorSet, "IsHandover": validatorSetID == currentValidatorSet+1, - "Mandatory": result.MandatoryCommitment, + "IsMandatory": result.IsMandatory, "lastSyncedBeefyBlock": lastSyncedBeefyBlock, }) diff --git a/relayer/relays/beefy/scanner.go b/relayer/relays/beefy/scanner.go index 309f7bb447..d53e10e51d 100644 --- a/relayer/relays/beefy/scanner.go +++ b/relayer/relays/beefy/scanner.go @@ -180,12 +180,12 @@ func scanCommitments(ctx context.Context, api *gsrpc.SubstrateAPI, startBlock ui } type ScanSafeCommitmentsResult struct { - SignedCommitment types.SignedCommitment - MMRProof merkle.SimplifiedMMRProof - BlockHash types.Hash - Depth uint64 - MandatoryCommitment bool - Error error + SignedCommitment types.SignedCommitment + MMRProof merkle.SimplifiedMMRProof + BlockHash types.Hash + Depth uint64 + IsMandatory bool + Error error } func ScanSafeCommitments(ctx context.Context, meta *types.Metadata, api *gsrpc.SubstrateAPI, startBlock uint64) (<-chan ScanSafeCommitmentsResult, error) {