Skip to content

Commit

Permalink
nns: limit max number of records to 16
Browse files Browse the repository at this point in the history
These numbers are pretty much arbitrary, but we currently don't need more than
that.

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Jul 29, 2024
1 parent 8f751bc commit d0d687a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/nns/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const (
maxTXTRecordLength = 255
// maxRecordID is the maximum value of record ID (the upper bound for the number
// of records with the same type).
maxRecordID = 255
maxRecordID = 16
)

// Other constants.
Expand Down
2 changes: 1 addition & 1 deletion tests/nns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const nnsPath = "../contracts/nns"

const (
msPerYear = 365 * 24 * time.Hour / time.Millisecond
maxRecordID = 255 // value from the contract.
maxRecordID = 16 // value from the contract.
)

func newNNSInvoker(t *testing.T, addRoot bool, tldSet ...string) *neotest.ContractInvoker {
Expand Down

0 comments on commit d0d687a

Please sign in to comment.