Skip to content

Commit 8e33864

Browse files
authored
Fix nonce initialization in currency launch for low bump seed memory accounts (#159)
1 parent badd1c8 commit 8e33864

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

ocp/worker/currency/launcher/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ func (p *runtime) populateNonceMemory(ctx context.Context, accounts *newCurrency
727727
go func(batch int) {
728728
defer wg.Done()
729729

730-
func() error {
730+
err := func() error {
731731
ixns := []solana.Instruction{
732-
compute_budget.SetComputeUnitLimit(400_000),
732+
compute_budget.SetComputeUnitLimit(550_000),
733733
compute_budget.SetComputeUnitPrice(10_000),
734734
}
735735
for i := range initVdnIxnsPerTxn {

ocp/worker/currency/launcher/worker.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ func (p *runtime) handleStateInitializing(ctx context.Context, currencyMetadataR
228228
return errors.Wrap(err, "error adding timelock memory account to db")
229229
}
230230

231-
// todo: add timelock memory account to reservation system
232-
233231
//
234232
// Initialization phase 3 (nonce pool)
235233
//

0 commit comments

Comments
 (0)