Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set comment_vote_object_base_size based on STEEM_CASHOUT_WINDOW_SECONDS #3064 #3065

Merged
merged 1 commit into from
Oct 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
// 229
// {"days":28}
// 1940
// {"days":7}
// 525

#define STATE_TRANSACTION_BYTE_SIZE 174
#define STATE_TRANSFER_FROM_SAVINGS_BYTE_SIZE 229
#define STATE_LIMIT_ORDER_BYTE_SIZE 1940
#define STATE_COMMENT_VOTE_BYTE_SIZE 525

#define EXEC_FOLLOW_CUSTOM_OP_SCALE 20

Expand Down Expand Up @@ -48,7 +51,7 @@ struct state_object_size_info
int64_t comment_object_beneficiaries_member_size = 18*STATE_BYTES_SCALE;

// comment_vote_object
int64_t comment_vote_object_base_size = 47 *STATE_BYTES_SCALE;
int64_t comment_vote_object_base_size = 47 *STATE_COMMENT_VOTE_BYTE_SIZE;

// convert_request_object
int64_t convert_request_object_base_size = 48 *STATE_BYTES_SCALE;
Expand Down