From d6ef3567f4da9abe9880d89f4c7ceb83cc589713 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Fri, 24 Jul 2020 22:08:09 +0300 Subject: [PATCH] conf/accounts.rs: add hash() method --- src/conf/accounts.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/conf/accounts.rs b/src/conf/accounts.rs index dab6fe39..3ce6c33e 100644 --- a/src/conf/accounts.rs +++ b/src/conf/accounts.rs @@ -1010,6 +1010,10 @@ impl Account { &self.name } + pub fn hash(&self) -> AccountHash { + self.hash + } + pub fn load(&mut self, mailbox_hash: MailboxHash) -> result::Result<(), usize> { if mailbox_hash == 0 { return Err(0);