Skip to main content

All Questions

Tagged with
2 votes
1 answer
38 views

Am I allowed to use a BinaryHeap in an account?

I'm pretty sure std::collections::BinaryHeap supports Borsh, so I thought I could use it with an account. Here is the account: #[account] pub struct Voter { pub claim_queue: BinaryHeap<...
Varun Siva's user avatar
4 votes
1 answer
137 views

How does borsh serialize updated data back into account?

In the code from the project here, the processing logic is as follows: pub struct Processor {} impl Processor { pub fn process_instruction( _program_id: &Pubkey, accounts: &...
Finlay Weber's user avatar