-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Fix storage program space issues and limit storage transaction data #4677
Fix storage program space issues and limit storage transaction data #4677
Conversation
@mvines take a look at the wallet changes. I think I did the right thing. (including the pretty print for the account data; maybe I should have done it for all account prints?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wallet changes lgtm
Codecov Report
@@ Coverage Diff @@
## master #4677 +/- ##
========================================
+ Coverage 71.6% 75.5% +3.8%
========================================
Files 184 184
Lines 35910 34096 -1814
========================================
+ Hits 25732 25754 +22
+ Misses 10178 8342 -1836 |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4677 +/- ##
========================================
+ Coverage 71.6% 75.5% +3.8%
========================================
Files 184 184
Lines 35910 34096 -1814
========================================
+ Hits 25732 25754 +22
+ Misses 10178 8342 -1836 |
// The maximum transaction size is == `PACKET_DATA_SIZE` (1232 bytes) | ||
// There are approx. 900 bytes left over after the storage instruction is wrapped into | ||
// a signed transaction. | ||
static MAX_BYTES: u64 = 900; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do something like PACKET_DATA_SIZE - 300
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe that is better. I'll fix it the next time I push something.
Problem
Storage accounts can fill up quite easily and it's possible for validators to be unable to submit some proof of validation transactions if there are too many replicators and proofs in a turn/segment
Summary of Changes
Numerous updates to storage accounts and storage program
Fixes #4536