anchor.diff:  %% Misc
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
  +%% provide some debug information for the gossip moudle (to be added to the
  +%% information of a the callback modules)
   -spec web_debug_info(State::state()) -> [{_,_}, ...].
   web_debug_info(State) ->
       CBModules = state_get(cb_modules, State),
  
positive.code:         _ -> {Key, State}
      end.
  
  % hack to be able to suppress warnings when testing via config:write()
  -spec warn() -> log:log_level().
  warn() ->
      case config:read(gossip_log_level_warn) of
  
negative.code: state_set(Key, Value, CBModule, State) ->
      state_set({Key, CBModule}, Value, State).
  
  %% updates the state with the given function
  -spec state_update(Key::state_key_cb(), UpdateFun::fun(), CBModule::cb_module(), State::state()) -> ok.
  state_update(Key, Fun, CBModule, State) ->
      Value = apply(Fun, [state_get(Key, CBModule, State)]),
  