Commit f975861a authored by Sergei Zubov's avatar Sergei Zubov

Merge consensus errors

parent ca0b007a
......@@ -36,7 +36,7 @@ namespace Stratis.Bitcoin.Features.Consensus
services.AddSingleton<DBreezeCoinView>();
services.AddSingleton<ICoinView, CachedCoinView>();
services.AddSingleton<ConsensusController>();
services.AddSingleton<IConsensusRuleEngine, PowConsensusRuleEngine>();
services.AddSingleton<IConsensusRuleEngine, DeStreamPowConsensusRuleEngine>();
services.AddSingleton<IChainState, ChainState>();
services.AddSingleton<ConsensusQuery>()
.AddSingleton<INetworkDifficulty, ConsensusQuery>(provider => provider.GetService<ConsensusQuery>())
......@@ -64,7 +64,7 @@ namespace Stratis.Bitcoin.Features.Consensus
services.AddSingleton<IStakeValidator, StakeValidator>();
services.AddSingleton<ConsensusController>();
services.AddSingleton<IRewindDataIndexCache, RewindDataIndexCache>();
services.AddSingleton<IConsensusRuleEngine, PosConsensusRuleEngine>();
services.AddSingleton<IConsensusRuleEngine, DeStreamPosConsensusRuleEngine>();
services.AddSingleton<IChainState, ChainState>();
services.AddSingleton<ConsensusQuery>()
.AddSingleton<INetworkDifficulty, ConsensusQuery>(provider => provider.GetService<ConsensusQuery>())
......
......@@ -3,5 +3,7 @@
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 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