mirror of https://github.com/oxen-io/oxen-core.git
Fix debug compilation
This commit is contained in:
parent
34ef746c95
commit
bac9c05162
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue