mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
Fix handling of output distribution
We prior didn't handle how the output distribution only starts after a specific block.
This commit is contained in:
@@ -69,9 +69,9 @@ async fn test_decoy_rpc() {
|
||||
.unwrap();
|
||||
|
||||
// Test get_output_distribution
|
||||
// It's documented to take two inclusive block numbers
|
||||
// Our documentation for our Rust fn defines it as taking two block numbers
|
||||
{
|
||||
let distribution_len = rpc.get_output_distribution_len().await.unwrap();
|
||||
let distribution_len = rpc.get_output_distribution_end_height().await.unwrap();
|
||||
assert_eq!(distribution_len, rpc.get_height().await.unwrap());
|
||||
|
||||
rpc.get_output_distribution(0 ..= distribution_len).await.unwrap_err();
|
||||
|
||||
Reference in New Issue
Block a user