Skip to content

Commit 40e4fcd

Browse files
committed
Clarification in comments about page size increments
1 parent f368ab8 commit 40e4fcd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config/consensus.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,14 @@ type ConsensusParams struct {
227227
// max sum([len(arg) for arg in txn.ApplicationArgs])
228228
MaxAppTotalArgLen int
229229

230-
// maximum length of application approval program or clear state
231-
// program in bytes
230+
// maximum byte len of application approval program or clear state
231+
// When MaxExtraAppProgramPages > 0, this is the size of those pages.
232+
// So two "extra pages" would mean 3*MaxAppProgramLen bytes are available.
232233
MaxAppProgramLen int
233234

234235
// maximum total length of an application's programs (approval + clear state)
236+
// When MaxExtraAppProgramPages > 0, this is the size of those pages.
237+
// So two "extra pages" would mean 3*MaxAppTotalProgramLen bytes are available.
235238
MaxAppTotalProgramLen int
236239

237240
// extra length for application program in pages. A page is MaxAppProgramLen bytes

0 commit comments

Comments
 (0)