Commit db1e348c authored by Sergei Zubov's avatar Sergei Zubov

Merge consensus errors

parent 1887f997
...@@ -36,7 +36,7 @@ namespace Stratis.Bitcoin.Features.Consensus ...@@ -36,7 +36,7 @@ namespace Stratis.Bitcoin.Features.Consensus
services.AddSingleton<DBreezeCoinView>(); services.AddSingleton<DBreezeCoinView>();
services.AddSingleton<ICoinView, CachedCoinView>(); services.AddSingleton<ICoinView, CachedCoinView>();
services.AddSingleton<ConsensusController>(); services.AddSingleton<ConsensusController>();
services.AddSingleton<IConsensusRuleEngine, PowConsensusRuleEngine>(); services.AddSingleton<IConsensusRuleEngine, DeStreamPowConsensusRuleEngine>();
services.AddSingleton<IChainState, ChainState>(); services.AddSingleton<IChainState, ChainState>();
services.AddSingleton<ConsensusQuery>() services.AddSingleton<ConsensusQuery>()
.AddSingleton<INetworkDifficulty, ConsensusQuery>(provider => provider.GetService<ConsensusQuery>()) .AddSingleton<INetworkDifficulty, ConsensusQuery>(provider => provider.GetService<ConsensusQuery>())
...@@ -64,7 +64,7 @@ namespace Stratis.Bitcoin.Features.Consensus ...@@ -64,7 +64,7 @@ namespace Stratis.Bitcoin.Features.Consensus
services.AddSingleton<IStakeValidator, StakeValidator>(); services.AddSingleton<IStakeValidator, StakeValidator>();
services.AddSingleton<ConsensusController>(); services.AddSingleton<ConsensusController>();
services.AddSingleton<IRewindDataIndexCache, RewindDataIndexCache>(); services.AddSingleton<IRewindDataIndexCache, RewindDataIndexCache>();
services.AddSingleton<IConsensusRuleEngine, PosConsensusRuleEngine>(); services.AddSingleton<IConsensusRuleEngine, DeStreamPosConsensusRuleEngine>();
services.AddSingleton<IChainState, ChainState>(); services.AddSingleton<IChainState, ChainState>();
services.AddSingleton<ConsensusQuery>() services.AddSingleton<ConsensusQuery>()
.AddSingleton<INetworkDifficulty, ConsensusQuery>(provider => provider.GetService<ConsensusQuery>()) .AddSingleton<INetworkDifficulty, ConsensusQuery>(provider => provider.GetService<ConsensusQuery>())
......
...@@ -3,5 +3,7 @@ ...@@ -3,5 +3,7 @@
public static partial class ConsensusErrors public static partial class ConsensusErrors
{ {
public static readonly ConsensusError BadBlockNoFeeOutput = new ConsensusError("bad-blk-feeoutput", "no fee output in coinbase or coinstake transactions"); public static readonly ConsensusError BadBlockNoFeeOutput = new ConsensusError("bad-blk-feeoutput", "no fee output in coinbase or coinstake transactions");
public static readonly ConsensusError BadBlockTotalFundsChanged = new ConsensusError("bad-block-total-funds-changed", "total amount of funds in blockchain changed");
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment