Skip to content

Commit

Permalink
DBFTPlugin: adopt new Conflicts attribute storage scheme
Browse files Browse the repository at this point in the history
Upgrade neo-modules to use neo-project/neo#2913.

Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Sep 19, 2023
1 parent 63e3ec3 commit 9257cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DBFTPlugin/Consensus/ConsensusService.OnMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void OnPrepareRequestReceived(ExtensiblePayload payload, PrepareRequest
{
if (mempoolVerified.TryGetValue(hash, out Transaction tx))
{
if (NativeContract.Ledger.ContainsConflictHash(context.Snapshot, hash, tx.Signers.Select(s => s.Account)))
if (NativeContract.Ledger.ContainsConflictHash(context.Snapshot, hash, tx.Signers.Select(s => s.Account), neoSystem.Settings.MaxTraceableBlocks))
{
Log($"Invalid request: transaction has on-chain conflict", LogLevel.Warning);
return;
Expand All @@ -140,7 +140,7 @@ private void OnPrepareRequestReceived(ExtensiblePayload payload, PrepareRequest
{
if (neoSystem.MemPool.TryGetValue(hash, out tx))
{
if (NativeContract.Ledger.ContainsConflictHash(context.Snapshot, hash, tx.Signers.Select(s => s.Account)))
if (NativeContract.Ledger.ContainsConflictHash(context.Snapshot, hash, tx.Signers.Select(s => s.Account), neoSystem.Settings.MaxTraceableBlocks))
{
Log($"Invalid request: transaction has on-chain conflict", LogLevel.Warning);
return;
Expand Down

0 comments on commit 9257cee

Please sign in to comment.