diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-11 14:51:03 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-05 11:57:55 +0000 |
| commit | b044d03a51e1dc64bebe2461813e0cfc50f71b0d (patch) | |
| tree | c0efdbeae2f8ed76e9ac628556ff119fe195e5dc /tests/block_weight | |
| parent | b747e836c884ac037825804636aac1c7786a3a13 (diff) | |
| download | monzero-core-b044d03a51e1dc64bebe2461813e0cfc50f71b0d.tar.gz monzero-core-b044d03a51e1dc64bebe2461813e0cfc50f71b0d.tar.xz monzero-core-b044d03a51e1dc64bebe2461813e0cfc50f71b0d.zip | |
Avoid repeated (de)serialization when syncing
Diffstat (limited to 'tests/block_weight')
| -rw-r--r-- | tests/block_weight/block_weight.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/block_weight/block_weight.cpp b/tests/block_weight/block_weight.cpp index a67f40f0f..c70c2f950 100644 --- a/tests/block_weight/block_weight.cpp +++ b/tests/block_weight/block_weight.cpp @@ -129,7 +129,7 @@ static void test(test_t t, uint64_t blocks) cryptonote::block b; b.major_version = 1; b.minor_version = 1; - bc->get_db().add_block(b, 300000, 300000, bc->get_db().height(), bc->get_db().height(), {}); + bc->get_db().add_block(std::make_pair(b, ""), 300000, 300000, bc->get_db().height(), bc->get_db().height(), {}); if (!bc->update_next_cumulative_weight_limit()) { fprintf(stderr, "Failed to update cumulative weight limit 1\n"); @@ -163,7 +163,7 @@ static void test(test_t t, uint64_t blocks) cryptonote::block b; b.major_version = 10; b.minor_version = 10; - bc->get_db().add_block(std::move(b), w, ltw, bc->get_db().height(), bc->get_db().height(), {}); + bc->get_db().add_block(std::make_pair(std::move(b), ""), w, ltw, bc->get_db().height(), bc->get_db().height(), {}); if (!bc->update_next_cumulative_weight_limit()) { |
