Get current epoch number from morph client and store the value in local state structure. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Define networkState structure and implement netmap.State interface on it. Set epoch number on NewEpoch notification from chain. Provide WithNetworkState option to Put service constructor. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Alex Vanin <alexey@nspcc.ru>