Skip to content

Commit

Permalink
Merge pull request #176 from eosnetworkfoundation/yarkin/merge_option…
Browse files Browse the repository at this point in the history
…_change2

[0.7->main] Disable deprecated ship-start-from options
  • Loading branch information
yarkinwho authored Jan 12, 2024
2 parents 960c6e7 + 9c935cd commit bd2c417
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ship_receiver_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,6 @@ void ship_receiver_plugin::plugin_initialize( const appbase::variables_map& opti
std::optional<uint64_t> start_from_canonical_height;
uint32_t delay_second = 10;
uint32_t max_retry = 0;
if (options.contains("ship-start-from-block-id")) {
throw std::runtime_error("ship-start-from-block-id deprecated. Please use ship-start-from-canonical-height for similar functionality.");
} else if ( options.contains("ship-start-from-block-timestamp") ) {
throw std::runtime_error("ship-start-from-block-timestamp deprecated. Please use ship-start-from-canonical-height for similar functionality.");
}

if (options.contains("ship-start-from-canonical-height")) {
start_from_canonical_height = options.at("ship-start-from-canonical-height").as<uint64_t>();
Expand Down

0 comments on commit bd2c417

Please sign in to comment.