Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
07b9686e
Commit
07b9686e
authored
3 years ago
by
Svyatoslav Nikolsky
Committed by
Bastian Köcher
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
add missing license header (#1204)
parent
19201175
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bridges/relays/messages/src/relay_strategy/mix_strategy.rs
+19
-1
19 additions, 1 deletion
bridges/relays/messages/src/relay_strategy/mix_strategy.rs
with
19 additions
and
1 deletion
bridges/relays/messages/src/relay_strategy/mix_strategy.rs
+
19
−
1
View file @
07b9686e
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
// This file is part of Parity Bridges Common.
// Parity Bridges Common is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Parity Bridges Common is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
//! Adapter for using `enum RelayerMode` in a context which requires `RelayStrategy`.
use
async_trait
::
async_trait
;
use
crate
::{
...
...
@@ -9,7 +27,7 @@ use crate::{
relay_strategy
::{
AltruisticStrategy
,
RationalStrategy
,
RelayReference
,
RelayStrategy
},
};
///
The r
elayer
doesn't care about rewards
.
///
`R
elayer
Mode` adapter
.
#[derive(Clone)]
pub
struct
MixStrategy
{
relayer_mode
:
RelayerMode
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment