Skip to content

Commit 03a06fc

Browse files
authored
parallel accumulate (#361)
1 parent a66ce7c commit 03a06fc

File tree

4 files changed

+217
-100
lines changed

4 files changed

+217
-100
lines changed

Blockchain/Sources/Blockchain/RuntimeProtocols/AccumulateFunction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public struct OperandTuple: Codable {
2020
public var authorizerTrace: Data
2121
}
2222

23-
public struct DeferredTransfers: Codable {
23+
public struct DeferredTransfers: Codable, Sendable {
2424
// s
2525
public var sender: ServiceIndex
2626
// d
@@ -43,7 +43,7 @@ public struct DeferredTransfers: Codable {
4343

4444
/// Characterization (i.e. values capable of representing) of state components
4545
/// which are both needed and mutable by the accumulation process.
46-
public struct AccumulateState {
46+
public struct AccumulateState: Sendable {
4747
/// d (all service accounts)
4848
public var accounts: ServiceAccountsMutRef
4949
/// i

0 commit comments

Comments
 (0)