mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
hosts: enable the transition from Refine to Move
We need to be able to move hosts after refining them, whether that's to send them to the greylist or to the whitelist.
This commit is contained in:
@@ -226,7 +226,7 @@ impl HostState {
|
||||
let end = HostState::Move.to_string();
|
||||
match self {
|
||||
HostState::Insert => Err(Error::HostStateBlocked(start, end)),
|
||||
HostState::Refine => Err(Error::HostStateBlocked(start, end)),
|
||||
HostState::Refine => Ok(HostState::Move),
|
||||
HostState::Connect => Ok(HostState::Move),
|
||||
HostState::Suspend => Err(Error::HostStateBlocked(start, end)),
|
||||
HostState::Connected(_) => Ok(HostState::Move),
|
||||
|
||||
Reference in New Issue
Block a user