1
0
Fork 0
forked from lthn/blockchain

added default initialization

This commit is contained in:
cryptozoidberg 2022-10-11 20:19:24 +02:00
parent 425166ff49
commit ce7438265d
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
3 changed files with 4 additions and 5 deletions

View file

@ -443,7 +443,7 @@ namespace currency
struct zc_outs_range_proof
{
crypto::bpp_signature_serialized bpp;
uint8_t outputs_count; // how many outputs are included in the proof
uint8_t outputs_count = 0; // how many outputs are included in the proof
BEGIN_SERIALIZE_OBJECT()
FIELD(bpp)
@ -459,7 +459,7 @@ namespace currency
// Zarcanum-aware CLSAG signature
struct ZC_sig
{
crypto::public_key pseudo_out_amount_commitment; // premultiplied by 1/8
crypto::public_key pseudo_out_amount_commitment = null_pkey; // premultiplied by 1/8
crypto::CLSAG_GG_signature_serialized clsags_gg;
BEGIN_SERIALIZE_OBJECT()
@ -475,7 +475,7 @@ namespace currency
struct zc_balance_proof
{
crypto::signature s;
crypto::signature s = null_sig;
BEGIN_SERIALIZE_OBJECT()
FIELD(s)

View file

@ -1,5 +1,4 @@
// Copyright (c) 2022 Zano Project
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include "chaingen.h"

View file

@ -100,7 +100,7 @@ bool multiassets_basic_test::c1(currency::core& c, size_t ev_index, const std::v
CHECK_AND_ASSERT_MES(it_asset != balances.end() && it_native != balances.end(), false, "Failed to find needed asset in result balances");
CHECK_AND_ASSERT_MES(it_asset->second.total == AMOUNT_ASSETS_TO_TRANSFER_MULTIASSETS_BASIC, false, "Failed to find needed asset in result balances");
CHECK_AND_ASSERT_MES(it_native->second.total == 17517226000000000000, false, "Failed to find needed asset in result balances");
CHECK_AND_ASSERT_MES(it_native->second.total == uint64_t(17517226)*COIN, false, "Failed to find needed asset in result balances");
balances.clear();