Skip to content

Conversation

@mattfoley8
Copy link
Contributor

No description provided.

@mattfoley8 mattfoley8 requested a review from lazynina June 9, 2023 18:24
@mattfoley8 mattfoley8 requested a review from a team as a code owner June 9, 2023 18:24
@mattfoley8 mattfoley8 self-assigned this Jun 9, 2023
return string(snapshotGlobalParam)
}

func (bav *UtxoView) GetCurrentGlobalParam(field SnapshotGlobalParam) uint64 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used by backend when we update the GlobalParamsEntry. We only want to update if the passed in value differs from the current value. So we need a getter for the current value (and not just the snapshot value like we had before).

@mattfoley8 mattfoley8 merged commit d6799ae into mf/pos-merge-20230605 Jun 12, 2023
@mattfoley8 mattfoley8 deleted the mf/fix-bugs-in-updating-global-params branch June 12, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants