Skip to content

Bump tx-per-tick to 4096, release v2, drop pkg/errors - #17

Merged
0xluk merged 3 commits into
mainfrom
16-increase-number-of-transactions-per-tick
May 13, 2026
Merged

Bump tx-per-tick to 4096, release v2, drop pkg/errors#17
0xluk merged 3 commits into
mainfrom
16-increase-number-of-transactions-per-tick

Conversation

@0xluk

@0xluk 0xluk commented May 13, 2026

Copy link
Copy Markdown

Summary

  • Raise MaxNumberOfTransactionsPerTick from 1024 to 4096 (breaking wire-format change). Replace two stray literal [1024] array sizings with the constant.
  • Bump module path to github.com/qubic/go-qubic/v2; rewrite all internal imports. Update proto go_package to github.com/qubic/go-qubic/v2/proto/v1;qubicpb (also fixes a prior inconsistency where the directive didn't match the actual import path) and regenerate .pb.go files.
  • Replace github.com/pkg/errors with stdlib: errors.Wrap / Wrapffmt.Errorf("...: %w", ...), errors.Errorffmt.Errorf, errors.New / errors.Is resolved from stdlib errors. Drop pkg/errors from go.mod.

Test plan

  • go build ./... clean (excluding untracked app/main.go with pre-existing API mismatches)
  • go test ./... green across common, common/smartcontracts/qutil, connector, sdk/core/nodetypes, sdk/events, sdk/qx, smartcontracts/qutil
  • go list -m reports github.com/qubic/go-qubic/v2
  • go mod tidy clean; no pkg/errors in go.mod / go.sum
  • Smoke-test against a live Qubic node: request a recent tick's TickData and confirm it unmarshals against the new 4096-sized buffers

0xluk added 2 commits May 13, 2026 13:27
- Raise MaxNumberOfTransactionsPerTick from 1024 to 4096 (breaking wire-format change).
- Replace stray literal [1024] sizings in TickData.ContractFees and contractFeesToProto with the constant.
- Bump module path to github.com/qubic/go-qubic/v2 and update all internal imports.
- Update proto go_package to github.com/qubic/go-qubic/v2/proto/v1;qubicpb (also fixes prior path inconsistency) and regenerate .pb.go files.
Convert errors.Wrap/Wrapf to fmt.Errorf with %w wrapping, errors.Errorf
to fmt.Errorf, and resolve errors.New/Is from the stdlib errors package.
Drop github.com/pkg/errors from go.mod.
@0xluk 0xluk linked an issue May 13, 2026 that may be closed by this pull request
…sPerTick

ContractFees is indexed by contract ID, not by transaction slot. Introduce
MaxNumberOfContracts = 1024 and use it for the array and the
contractFeesToProto helper signature.
@0xluk
0xluk merged commit ac7aee0 into main May 13, 2026
4 checks passed
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.

Increase number of transactions per tick

2 participants