diff --git a/Blockchain/Sources/Blockchain/BlockchainDataProvider/BlockchainDataProvider.swift b/Blockchain/Sources/Blockchain/BlockchainDataProvider/BlockchainDataProvider.swift index 3ad95efb..3da0693b 100644 --- a/Blockchain/Sources/Blockchain/BlockchainDataProvider/BlockchainDataProvider.swift +++ b/Blockchain/Sources/Blockchain/BlockchainDataProvider/BlockchainDataProvider.swift @@ -14,7 +14,7 @@ public enum BlockchainDataProviderError: Error, Equatable { case uncanonical(hash: Data32) } -public actor BlockchainDataProvider: Sendable { +public actor BlockchainDataProvider { public private(set) var bestHead: HeadInfo public private(set) var finalizedHead: HeadInfo private let dataProvider: BlockchainDataProviderProtocol diff --git a/Blockchain/Sources/Blockchain/BlockchainDataProvider/InMemoryDataProvider.swift b/Blockchain/Sources/Blockchain/BlockchainDataProvider/InMemoryDataProvider.swift index 5ddd0dc9..93d66c7c 100644 --- a/Blockchain/Sources/Blockchain/BlockchainDataProvider/InMemoryDataProvider.swift +++ b/Blockchain/Sources/Blockchain/BlockchainDataProvider/InMemoryDataProvider.swift @@ -1,6 +1,6 @@ import Utils -public actor InMemoryDataProvider: Sendable { +public actor InMemoryDataProvider { public private(set) var heads: Set public private(set) var finalizedHead: Data32 diff --git a/Blockchain/Sources/Blockchain/State/StateTrie.swift b/Blockchain/Sources/Blockchain/State/StateTrie.swift index 7c7dffb5..627461b5 100644 --- a/Blockchain/Sources/Blockchain/State/StateTrie.swift +++ b/Blockchain/Sources/Blockchain/State/StateTrie.swift @@ -95,7 +95,7 @@ public enum StateTrieError: Error { case invalidParent } -public actor StateTrie: Sendable { +public actor StateTrie { private let backend: StateBackendProtocol public private(set) var rootHash: Data32 private var nodes: [Data: TrieNode] = [:] diff --git a/Node/Sources/Node/NetworkingProtocol/PeerManager.swift b/Node/Sources/Node/NetworkingProtocol/PeerManager.swift index f65462b6..afb4a6c8 100644 --- a/Node/Sources/Node/NetworkingProtocol/PeerManager.swift +++ b/Node/Sources/Node/NetworkingProtocol/PeerManager.swift @@ -20,7 +20,7 @@ public struct PeerInfo: Sendable { // - distinguish between connect peers and offline peers // - peer reputation // - purge offline peers -public actor PeerManager: Sendable { +public actor PeerManager { private let eventBus: EventBus public private(set) var peers: [Data: PeerInfo] = [:] diff --git a/Node/Sources/Node/NetworkingProtocol/SyncManager.swift b/Node/Sources/Node/NetworkingProtocol/SyncManager.swift index 7aa30985..305fa38b 100644 --- a/Node/Sources/Node/NetworkingProtocol/SyncManager.swift +++ b/Node/Sources/Node/NetworkingProtocol/SyncManager.swift @@ -20,7 +20,7 @@ enum SyncStatus { // - sync peer rotation // - fast sync mode (no verification) // - re-enter to bulk sync mode if new peer with better head is discovered -public actor SyncManager: Sendable { +public actor SyncManager { private let blockchain: Blockchain private let network: Network private let peerManager: PeerManager