(&self, buf: &mut impl BufMut)
| 118 | status, |
| 119 | has_pending_deposit, |
| 120 | has_pending_withdrawal, |
| 121 | joining_epoch, |
| 122 | last_deposit_index, |
| 123 | }) |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | impl Write for ValidatorAccount { |
| 128 | fn write(&self, buf: &mut impl BufMut) { |
| 129 | buf.put(&self.consensus_public_key.encode()[..]); |
| 130 | buf.put(&self.withdrawal_credentials.0[..]); |
| 131 | buf.put(&self.balance.to_le_bytes()[..]); |
| 132 | buf.put_u8(self.status.to_u8()); |