Skip to content

Commit c044abe

Browse files
Add comment for Spork.Version
Co-authored-by: Jordan Schalm <jordan.schalm@flowfoundation.org>
1 parent ff8337b commit c044abe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ type Spork struct {
112112
Next *Spork
113113
Prev *Spork
114114
RootBlock uint64
115-
Version int
115+
// Version is a Rosetta-internal version number that tracks Rosetta compatibility with Flow network versions.
116+
// This version number is incremented each time there is a Flow network upgrades which includes a breaking change for Rosetta.
117+
// Not all Flow network upgrades cause breaking changes for Rosetta, so this version number is not incremented for every network upgrade.
118+
Version int
116119
}
117120

118121
func (s *Spork) String() string {

0 commit comments

Comments
 (0)