Skip to content

Commit

Permalink
Merge pull request #775 from eosnetworkfoundation/taokayan-patch-2-main
Browse files Browse the repository at this point in the history
Update for Spring main 1.1.0
  • Loading branch information
taokayan authored Oct 31, 2024
2 parents 1d53119 + 92483ff commit e77e53b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
owner: AntelopeIO
repo: spring
file: 'antelope-spring-dev.*ubuntu22\.04_amd64.deb'
target: '1'
target: 'main'
prereleases: false
artifact-name: antelope-spring-dev-ubuntu22-amd64
container-package: antelope-spring-experimental-binaries
Expand Down
18 changes: 9 additions & 9 deletions tests/basic_evm_tester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ class evm_validating_tester : public testing::base_tester {
signed_block_ptr produce_block( fc::microseconds skip_time = fc::milliseconds(config::block_interval_ms), bool no_throw = false )override {
auto produce_block_result = _produce_block(skip_time, false, no_throw);
auto sb = produce_block_result.block;
auto bhf = validating_node->create_block_handle_future( sb->calculate_id(), sb );
struct controller::block_report br;
validating_node->push_block(br, bhf.get(), forked_callback_t{}, trx_meta_cache_lookup{} );
auto [best_head, obh] = validating_node->accept_block( sb->calculate_id(), sb );
EOS_ASSERT(obh, unlinkable_block_exception, "block did not link ${b}", ("b", sb->calculate_id()));
validating_node->apply_blocks( {}, trx_meta_cache_lookup{} );

return sb;
}
Expand All @@ -361,17 +361,17 @@ class evm_validating_tester : public testing::base_tester {
}

void validate_push_block(const signed_block_ptr& sb) {
auto bhf = validating_node->create_block_handle_future( sb->calculate_id(), sb );
struct controller::block_report br;
validating_node->push_block(br, bhf.get(), forked_callback_t{}, trx_meta_cache_lookup{} );
auto [best_head, obh] = validating_node->accept_block( sb->calculate_id(), sb );
EOS_ASSERT(obh, unlinkable_block_exception, "block did not link ${b}", ("b", sb->calculate_id()));
validating_node->apply_blocks( {}, trx_meta_cache_lookup{} );
}

signed_block_ptr produce_empty_block( fc::microseconds skip_time = fc::milliseconds(config::block_interval_ms) )override {
unapplied_transactions.add_aborted( control->abort_block() );
auto sb = _produce_block(skip_time, true);
auto bhf = validating_node->create_block_handle_future( sb->calculate_id(), sb );
struct controller::block_report br;
validating_node->push_block(br, bhf.get(), forked_callback_t{}, trx_meta_cache_lookup{} );
auto [best_head, obh] = validating_node->accept_block( sb->calculate_id(), sb );
EOS_ASSERT(obh, unlinkable_block_exception, "block did not link ${b}", ("b", sb->calculate_id()));
validating_node->apply_blocks( {}, trx_meta_cache_lookup{} );

return sb;
}
Expand Down

0 comments on commit e77e53b

Please sign in to comment.