-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapshot mana epochs #2265
Snapshot mana epochs #2265
Conversation
packages/snapshot/snapshot.go
Outdated
) | ||
|
||
type Snapshot struct { | ||
LedgerSnapshot *ledger.Snapshot | ||
ManaSnapshot *mana.Snapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just have the inner struct as this now has only one field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave it as is for now. Maybe we will add another field in the future, then we would need to change it back.
packages/mana/consensusbasevector.go
Outdated
BaseMana1: value, | ||
} | ||
} | ||
func (c *ConsensusBaseManaVector) LoadSnapshot(snapshot map[identity.ID]float64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we just store the base vector right?
Also let's maybe change the function name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we populate the vector with the map data.
Sure, I changed the name.
packages/mana/accessbasevector.go
Outdated
ManaType: a.Type(), | ||
}) | ||
} | ||
func (a *AccessBaseManaVector) LoadSnapshot(snapshot map[identity.ID]float64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we just store the base vector right?
Also let's maybe change the function name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we populate the vector with the map data.
Sure, I changed the name.
# Conflicts: # packages/mana/basevector.go # packages/mana/events_test.go # packages/mana/manabasevector.go # tools/docker-network/docker-network.snapshot
This reverts commit 862dfae.
No description provided.