Have the RPC return the unsupported version when Unsupported

This commit is contained in:
Luke Parker
2022-11-14 23:56:28 -05:00
parent 6acbfdcc45
commit 83060a914a
3 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ pub async fn rpc() -> Rpc {
// Mine 20 blocks to ensure decoy availability
mine_block(&rpc, &addr).await.unwrap();
mine_block(&rpc, &addr).await.unwrap();
assert!(!matches!(rpc.get_protocol().await.unwrap(), Protocol::Unsupported));
assert!(!matches!(rpc.get_protocol().await.unwrap(), Protocol::Unsupported(_)));
rpc
}