-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some fields change to adapt for both 1.x and 2.x models: - `BlockSigningKey` in `BlockState` has been renamed to `BlockSigningKeyV1` and now a `*ecc.PublicKey` - `ValidBlockSigningAuthorityV2` has been added to `BlockState` replacing old `BlockSigningKey` and is of type `BlockSigningAuthority` - `ActiveSchedule` in `BlockState` is now of type `*ProducerScheduleOrAuthoritySchedule` - `PendingSchedule.Schedule` is now of type `*ProducerScheduleOrAuthoritySchedule` - `BlockHeader` `NewProducers` has been renamed `NewProducersV1`. The EOSIO 2.x does not have this field and has been replaced by a block header extension. An extension contains a payload, when the `producer_schedule_change_extension` block header extension is present, it means we are dealing with a new set of producers, as such, replacing the old `BlockHeader.NewProducers` field. Some other changes for proper support: - Added BlockHeaderExtension interface with all known EOS BlockHeaderExtension concrete type as well as necessary methods to work with BlockHeaderExtension - Added support for `UnmarshalerBinary` interface in Decoder, this is to support `Variant` decoding as well as an initial start to unclutter the `decoder.go` file. - Added Variant binary decoding support. - Proper support of decoding `eos` `optional` struct field without relying on each type having an `Optional<Type>` field.
- Loading branch information
Matthieu Vachon
committed
Jan 22, 2020
1 parent
259db1d
commit 053b601
Showing
14 changed files
with
767 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.