浏览代码

Add a couple of comments to tests/wallet.rs

Ian Goldberg 5 月之前
父节点
当前提交
b445286f1e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tests/wallet.rs

+ 4 - 0
tests/wallet.rs

@@ -132,6 +132,8 @@ fn test_wallet() -> Result<(), CMZError> {
             N.set_privkey(&wallet_priv);
             Ok(())
         },
+        // This callback should test that W.randid has never been seen
+        // before, but it doesn't currently do that.
         |W: &Wallet, I: &Item, N: &Wallet| Ok(()),
     )?;
     let replybytes = reply.as_bytes();
@@ -164,6 +166,8 @@ fn test_wallet() -> Result<(), CMZError> {
             N.set_privkey(&wallet_priv);
             Ok(wallet_spend_with_fee::Params { fee: params.fee })
         },
+        // This callback should test that W.randid has never been seen
+        // before, but it doesn't currently do that.
         |W: &Wallet, I: &Item, N: &Wallet| Ok(()),
     )?;
     let replybytes_fee = reply_fee.as_bytes();