Skip to content

Commit

Permalink
Add BIC to presets_yaml validator config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsporn committed Apr 19, 2024
1 parent 85c51bf commit 77a030b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/genesis-snapshot/presets/presets_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ import (
)

type ValidatorYaml struct {
Name string `yaml:"name"`
PublicKey string `yaml:"publicKey"`
Name string `yaml:"name"`
PublicKey string `yaml:"publicKey"`
BlockIssuanceCredits uint64 `yaml:"blockIssuanceCredits"`
}

type BlockIssuerYaml struct {
Expand Down Expand Up @@ -81,7 +82,7 @@ func GenerateFromYaml(hostsFile string) ([]options.Option[snapshotcreator.Option
Amount: mock.MinValidatorAccountAmount(protocolParams),
IssuerKey: iotago.Ed25519PublicKeyHashBlockIssuerKeyFromPublicKey(ed25519.PublicKey(lo.PanicOnErr(hexutil.DecodeHex(pubkey)))),
ExpirySlot: iotago.MaxSlotIndex,
BlockIssuanceCredits: 0,
BlockIssuanceCredits: iotago.BlockIssuanceCredits(validator.BlockIssuanceCredits),
StakingEndEpoch: iotago.MaxEpochIndex,
FixedCost: 1,
StakedAmount: mock.MinValidatorAccountAmount(protocolParams),
Expand Down

0 comments on commit 77a030b

Please sign in to comment.