forked from lthn/blockchain
fixed all core tests
This commit is contained in:
parent
e94e5c0a97
commit
dfac17daeb
3 changed files with 4 additions and 1 deletions
|
|
@ -1284,6 +1284,7 @@ namespace currency
|
|||
tx.vin.clear();
|
||||
tx.vout.clear();
|
||||
tx.extra = extra;
|
||||
tx.signatures.clear();
|
||||
|
||||
tx.version = ftp.tx_version;
|
||||
if (unlock_time != 0)
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ namespace currency
|
|||
++sig_count; // count in one more signature for the last input in a complete separately signed tx
|
||||
tx_blob_size += tools::get_varint_packed_size(sig_count); // size of transaction::signatures[i]
|
||||
tx_blob_size += sizeof(crypto::signature) * sig_count; // size of signatures' data itself
|
||||
tx_blob_size += sizeof(binary_archive<true>::variant_tag_type); //tools::get_varint_packed_size(variant_serialization_traits<binary_archive<true>, currency::NLSAG_sig>::get_tag()); // sizeof variant tag
|
||||
//tx_blob_size += sizeof(binary_archive<true>::variant_tag_type); //tools::get_varint_packed_size(variant_serialization_traits<binary_archive<true>, currency::NLSAG_sig>::get_tag()); // sizeof variant tag
|
||||
}
|
||||
|
||||
// 2. attachments (try to find extra_attachment_info in tx prefix and count it in if succeed)
|
||||
|
|
|
|||
|
|
@ -314,8 +314,10 @@ public:
|
|||
size_t tx_expected_blob_size = get_object_blobsize(tx);
|
||||
if (!b_cp && tx_expected_blob_size != blob.size())
|
||||
{
|
||||
|
||||
size_t prefix_blobsize = currency::get_object_blobsize(static_cast<const currency::transaction_prefix&>(tx));
|
||||
currency::blobdata prefix_blob = t_serializable_object_to_blob(static_cast<const currency::transaction_prefix&>(tx));
|
||||
currency::blobdata full_blob_test = t_serializable_object_to_blob(tx);
|
||||
|
||||
std::stringstream s;
|
||||
s << "CP zone: " << b_cp << ", transaction: " << get_transaction_hash(tx) << ENDL <<
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue