Implement get_outputs_in_block for Monero

Uses a dummy view/spend for now, as we don't have wallet management yet.
This commit is contained in:
Luke Parker
2022-05-28 05:24:17 -04:00
parent e950b9682b
commit 92098b24ea
3 changed files with 26 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ trait Coin {
async fn max_outputs() -> usize;
async fn get_height(&self) -> Result<usize, CoinError>;
async fn get_outputs_in_block(&self) -> Result<Vec<Self::Output>, CoinError>;
async fn get_outputs_in_block(&self, height: usize) -> Result<Vec<Self::Output>, CoinError>;
async fn send(
&self,
payments: &[(Self::Address, u64)]