-
Notifications
You must be signed in to change notification settings - Fork 648
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
Simplifications #1789
Simplifications #1789
Conversation
Snapshot comparison at 38M produces empty diff. |
Good job. Looks good so far. |
8c45488
to
734562b
Compare
Rebase to avoid conflict |
4fedb1a
to
5522da9
Compare
Rebased. |
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.
Looks good so far.
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.
Note: the new "sign_message" formatter in libraries/wallet/wallet.cpp uses r.signature->data, which will not compile with these changes. The same problem exists in tests/cli/main.cpp. Perhaps rebase?
Now that FC changes are merged in, I believe an FC bump is in order.
@@ -442,7 +440,7 @@ void database::initialize_budget_record( fc::time_point_sec now, budget_record& | |||
budget_u128 += ((uint64_t(1) << GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS) - 1); | |||
budget_u128 >>= GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS; | |||
if( budget_u128 < reserve.value ) |
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.
This generates a signed/unsigned comparison warning on gcc 7.4.0, not the fault of this PR though.
@@ -497,7 +495,7 @@ void database::process_budget() | |||
if( worker_budget_u128 >= available_funds.value ) |
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.
This generates a signed/unsigned comparison warning on gcc 7.4.0, not the fault of this PR though.
f96b351
to
b9614a4
Compare
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.
Great work. Thanks!
Resolves #1584 and #998
Requires additional changes in FC: bitshares/bitshares-fc#137
Measured 8% speedup for replaying 33M blocks