Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only

using System;
using Nethermind.Blockchain;
using Nethermind.Core;

namespace Nethermind.Consensus.Clique
Expand All @@ -13,23 +11,6 @@ public static bool IsInTurn(this BlockHeader header)
{
return header.Difficulty == Clique.DifficultyInTurn;
}

internal static Address[] ExtractSigners(BlockHeader blockHeader)
{
if (blockHeader.ExtraData is null)
{
throw new BlockchainException("Block header ExtraData cannot be null when extracting signers");
}

Span<byte> signersData = blockHeader.ExtraData.AsSpan(Clique.ExtraVanityLength, (blockHeader.ExtraData.Length - Clique.ExtraSealLength));
Address[] signers = new Address[signersData.Length / Address.Size];
for (int i = 0; i < signers.Length; i++)
{
signers[i] = new Address(signersData.Slice(i * 20, 20).ToArray());
}

return signers;
}
}

internal static class BlockExtensions
Expand Down
45 changes: 0 additions & 45 deletions src/Nethermind/Nethermind.Core/Buffers/CappedArrayMemoryManager.cs

This file was deleted.

36 changes: 0 additions & 36 deletions src/Nethermind/Nethermind.Core/Caching/ISpanCache.cs

This file was deleted.

132 changes: 0 additions & 132 deletions src/Nethermind/Nethermind.Core/Collections/HashHelpers.cs

This file was deleted.

This file was deleted.

80 changes: 0 additions & 80 deletions src/Nethermind/Nethermind.Core/Collections/SortedRealList.cs

This file was deleted.

30 changes: 0 additions & 30 deletions src/Nethermind/Nethermind.Core/PubSub/CompositePublisher.cs

This file was deleted.

Loading
Loading