conf/accounts.rs: add hash() method
parent
688060ceb6
commit
d6ef3567f4
|
@ -1010,6 +1010,10 @@ impl Account {
|
||||||
&self.name
|
&self.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn hash(&self) -> AccountHash {
|
||||||
|
self.hash
|
||||||
|
}
|
||||||
|
|
||||||
pub fn load(&mut self, mailbox_hash: MailboxHash) -> result::Result<(), usize> {
|
pub fn load(&mut self, mailbox_hash: MailboxHash) -> result::Result<(), usize> {
|
||||||
if mailbox_hash == 0 {
|
if mailbox_hash == 0 {
|
||||||
return Err(0);
|
return Err(0);
|
||||||
|
|
Loading…
Reference in New Issue