Fix debug compilation

This commit is contained in:
Jason Rhinelander 2022-05-20 12:12:01 -03:00
parent 34ef746c95
commit bac9c05162
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
2 changed files with 3 additions and 5 deletions

View File

@ -409,12 +409,12 @@ namespace service_nodes
crypto::hash get_registration_hash(const registration_details& registration)
{
std::string buffer;
buffer.reserve(
size_t size =
sizeof(uint64_t) + // fee
registration.reserved.size() * (
sizeof(cryptonote::account_public_address) + sizeof(uint64_t)) + // addr+amount for each
sizeof(uint64_t) // expiration timestamp
);
sizeof(uint64_t); // expiration timestamp
buffer.reserve(size);
buffer += tools::view_guts(oxenc::host_to_little(registration.fee));
for (const auto& [addr, amount] : registration.reserved)
{

View File

@ -2271,7 +2271,6 @@ The Service Node will not activate until the entire stake has been contributed.
case register_step::final_summary:
{
assert(state.addresses.size() == state.contributions.size());
const uint64_t amount_left = staking_requirement - state.total_reserved_contributions;
std::cout << "\nRegistration Summary:\n\n";
@ -2647,7 +2646,6 @@ The Service Node will not activate until the entire stake has been contributed.
case register_step::final_summary:
{
assert(state.addresses.size() == state.contributions.size());
const uint64_t amount_left = staking_requirement - state.total_reserved_contributions;
std::cout << "\nRegistration Summary:\n\n";