Commit 6ae62d8 1 parent d00a4f7 commit 6ae62d8 Copy full SHA for 6ae62d8
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ struct block_log_fixture {
36
36
}
37
37
else {
38
38
eosio::chain::genesis_state gs;
39
- log ->reset (gs, std::make_shared< eosio::chain::signed_block>( ));
39
+ log ->reset (gs, eosio::chain::signed_block::create_signed_block ( eosio::chain::signed_block::create_mutable_block ({}) ));
40
40
41
41
// in this case it's not really empty since the "genesis block" is present. These tests only
42
42
// work because the default ctor of a block_header (used above) has previous 0'ed out which
@@ -54,11 +54,12 @@ struct block_log_fixture {
54
54
std::vector<char > a;
55
55
a.assign (size, fillchar);
56
56
57
- auto p = std::make_shared< eosio::chain::signed_block>( );
57
+ auto p = eosio::chain::signed_block::create_mutable_block ({} );
58
58
p->previous ._hash [0 ] = fc::endian_reverse_u32 (index -1 );
59
59
p->header_extensions .push_back (std::make_pair<uint16_t , std::vector<char >>(0 , std::vector<char >(a)));
60
60
61
- log ->append (p, p->calculate_id (), fc::raw::pack (*p));
61
+ auto sp = eosio::chain::signed_block::create_signed_block (std::move (p));
62
+ log ->append (sp, sp->calculate_id (), sp->packed_signed_block ());
62
63
63
64
if (index + 1 > written_data.size ())
64
65
written_data.resize (index + 1 );
You can’t perform that action at this time.
0 commit comments