From 05ecd0105d4e723517bc269c9b42bc650743ee89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 20 Jan 2021 20:51:10 +0100 Subject: Changing local state via service context --- src/service.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/service.cpp') diff --git a/src/service.cpp b/src/service.cpp index f8217c8..c731990 100644 --- a/src/service.cpp +++ b/src/service.cpp @@ -23,3 +23,13 @@ const Peer & Service::Context::peer() const { return p->peer; } + +const Stored & Service::Context::local() const +{ + return p->local; +} + +void Service::Context::local(const LocalState & ls) +{ + p->local = p->local.ref().storage().store(ls); +} -- cgit v1.2.3