Skip to content

block.Transactions() should return an immutable list #220

Open
@LarryRuane

Description

@LarryRuane

Avoid problems such as described here: https://levelup.gitconnected.com/building-immutable-data-structures-in-go-56a1068c76b2

It may be beneficial to apply these design ideas to the entire server, not just this one function. That would be a large amount of effort, probably, but would improve code robustness and reduce bugs.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions