Skip to content

Commit

Permalink
remove checks
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Jan 31, 2024
1 parent 1e0c7e7 commit 89326d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion relayer/relays/beefy/polkadot-listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (li *PolkadotListener) scanCommitments(
},
"validatorSetID": currentValidatorSet,
"IsHandover": validatorSetID == currentValidatorSet+1,
"Mandatory": result.MandatoryCommitment,
"IsMandatory": result.IsMandatory,
"lastSyncedBeefyBlock": lastSyncedBeefyBlock,
})

Expand Down
12 changes: 6 additions & 6 deletions relayer/relays/beefy/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 89326d0

Please sign in to comment.