# # # patch "constants.hh" # from [66134f17373632d6b83ae6cd293b319ed2219c8c] # to [e391543c177b7c136f3f8d3660343026994f5a7e] # # patch "network/automate_session.cc" # from [43a70013203e77f1c8e912bbe9736b3afbfebc51] # to [92d6e4f681d375b52f52f409efe9bc9abbd14ee5] # # patch "tests/netsync_negotiation/__driver__.lua" # from [f5d4e4a65afa4308dfc5f1fda1a9ec6e7cc338cb] # to [eae888851d1a709fbc55f229b591d1be2a614bea] # ============================================================ --- constants.hh 66134f17373632d6b83ae6cd293b319ed2219c8c +++ constants.hh e391543c177b7c136f3f8d3660343026994f5a7e @@ -128,7 +128,7 @@ namespace constants = merkle_bitmap_length_in_bits / 8; // the current netcmd/netsync protocol version - u8 const netcmd_current_protocol_version = 7; + u8 const netcmd_current_protocol_version = 8; // the oldest netcmd/netsync protocol version that we're compatible with u8 const netcmd_minimum_protocol_version = 6; ============================================================ --- network/automate_session.cc 43a70013203e77f1c8e912bbe9736b3afbfebc51 +++ network/automate_session.cc 92d6e4f681d375b52f52f409efe9bc9abbd14ee5 @@ -60,6 +60,8 @@ void automate_session::request_service() void automate_session::request_service() { + if (get_version() < 8) + throw bad_decode(F("server is too old for remote automate connections")); request_automate(); } ============================================================ --- tests/netsync_negotiation/__driver__.lua f5d4e4a65afa4308dfc5f1fda1a9ec6e7cc338cb +++ tests/netsync_negotiation/__driver__.lua eae888851d1a709fbc55f229b591d1be2a614bea @@ -121,6 +121,7 @@ check_against(6) -- check against compatible versions, both with fake "old" peers, -- and with real old peers if they're available check_against(6) +check_against(7) -- check against a fake far-future version fake_future = make_fake(1, 250)