Skip to content

Prefund faucet operator - #2523

Merged
Mirko-von-Leipzig merged 2 commits into
nextfrom
igamigo-operator-tokens
Aug 28, 2026
Merged

Prefund faucet operator#2523
Mirko-von-Leipzig merged 2 commits into
nextfrom
igamigo-operator-tokens

Conversation

@igamigo

@igamigo igamigo commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds some token to the faucet operator, and bumps the crate versions.

Changelog

[[entry]]
scope       = "node"
impact      = "fixed"
description = "Pre-fund the generated native faucet operator with 1,000 MIDEN at genesis so it can pay transaction fees."

Comment on lines +200 to +206
// Track all genesis issuance, one entry per faucet account id. A generated faucet operator
// is pre-funded in `NativeFaucetConfig::build_account`, so account for that allocation
// before adding configured wallet balances below.
let mut faucet_issuance = IndexMap::<AccountId, u64>::new();
if operator.is_some() {
faucet_issuance.insert(native_faucet_account_id, DEFAULT_FAUCET_OPERATOR_BALANCE);
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This mechanism of tracking faucet issuance predates a lot of the other code, so I'm not sure we still want to do it this way.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think its fine for now; the whole genesis code could use some refining imo.

@igamigo
igamigo marked this pull request as ready for review August 27, 2026 22:53

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you!

@Mirko-von-Leipzig Mirko-von-Leipzig changed the title feat: give some tokens to faucet operator Prefund faucet operator Aug 28, 2026
@Mirko-von-Leipzig
Mirko-von-Leipzig merged commit 308772c into next Aug 28, 2026
29 checks passed
@Mirko-von-Leipzig
Mirko-von-Leipzig deleted the igamigo-operator-tokens branch August 28, 2026 04:11
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.

2 participants