Skip to content
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

consortium-v2: add missing weight field to our customized json marshal #449

Merged

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented May 16, 2024

  • consortium-v2: define MarshalJSON on a non-pointer ValidatorWithBlsPub

We want json.Marshal to invoke our custom MarshalJSON when be called with
non-pointer ValidatorWithBlsPub. In order to do that, we need to define
MarshalJSON on a non-pointer receiver.

  • consortium-v2: add missing weight field to our customized json marshal

We want json.Marshal to invoke our custom MarshalJSON when be called with
non-pointer ValidatorWithBlsPub. In order to do that, we need to define
MarshalJSON on a non-pointer receiver.
@minh-bq minh-bq requested a review from andicrypt May 16, 2024 04:05
@minh-bq minh-bq changed the title consortium-v2: add missing weight field to our customized json marshalFix/snapshot weight consortium-v2: add missing weight field to our customized json marshal May 16, 2024
@minh-bq minh-bq merged commit 4e37c72 into axieinfinity:feat/rotating-validator May 16, 2024
1 check passed
@minh-bq minh-bq deleted the fix/snapshot-weight branch May 16, 2024 04:38
minh-bq added a commit that referenced this pull request May 20, 2024
#449)

* consortium-v2: define MarshalJSON on a non-pointer ValidatorWithBlsPub

We want json.Marshal to invoke our custom MarshalJSON when be called with
non-pointer ValidatorWithBlsPub. In order to do that, we need to define
MarshalJSON on a non-pointer receiver.

* consortium-v2: add missing weight field to our customized json marshal
minh-bq added a commit that referenced this pull request May 21, 2024
#449)

* consortium-v2: define MarshalJSON on a non-pointer ValidatorWithBlsPub

We want json.Marshal to invoke our custom MarshalJSON when be called with
non-pointer ValidatorWithBlsPub. In order to do that, we need to define
MarshalJSON on a non-pointer receiver.

* consortium-v2: add missing weight field to our customized json marshal
minh-bq added a commit that referenced this pull request May 21, 2024
#449)

* consortium-v2: define MarshalJSON on a non-pointer ValidatorWithBlsPub

We want json.Marshal to invoke our custom MarshalJSON when be called with
non-pointer ValidatorWithBlsPub. In order to do that, we need to define
MarshalJSON on a non-pointer receiver.

* consortium-v2: add missing weight field to our customized json marshal
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.

None yet

2 participants