|
|
@@ -115,13 +115,12 @@ async fn integration_test() -> Result<()> {
|
|
|
tx.signatures = vec![sigs];
|
|
|
|
|
|
let timer = Instant::now();
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
mint_verify_times.push(timer.elapsed());
|
|
|
// TODO: Witness and add to wallet merkle tree?
|
|
|
|
|
|
@@ -192,13 +191,12 @@ async fn integration_test() -> Result<()> {
|
|
|
let sigs = tx.create_sigs(&mut OsRng, &vec![dao_th.faucet_kp.secret])?;
|
|
|
tx.signatures = vec![sigs];
|
|
|
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
|
|
|
// Wallet stuff
|
|
|
|
|
|
@@ -308,13 +306,12 @@ async fn integration_test() -> Result<()> {
|
|
|
let sigs = tx3.create_sigs(&mut OsRng, &[gdrk_mint_auth.secret])?;
|
|
|
tx3.signatures = vec![sigs];
|
|
|
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx1.clone(), tx2.clone(), tx3.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
|
|
|
// Wallet
|
|
|
{
|
|
|
@@ -443,13 +440,12 @@ async fn integration_test() -> Result<()> {
|
|
|
tx.signatures = vec![sigs];
|
|
|
|
|
|
let timer = Instant::now();
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
propose_verify_times.push(timer.elapsed());
|
|
|
|
|
|
//// Wallet
|
|
|
@@ -554,13 +550,12 @@ async fn integration_test() -> Result<()> {
|
|
|
tx.signatures = vec![sigs];
|
|
|
|
|
|
let timer = Instant::now();
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
vote_verify_times.push(timer.elapsed());
|
|
|
|
|
|
// Secret vote info. Needs to be revealed at some point.
|
|
|
@@ -625,13 +620,12 @@ async fn integration_test() -> Result<()> {
|
|
|
tx.signatures = vec![sigs];
|
|
|
|
|
|
let timer = Instant::now();
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
vote_verify_times.push(timer.elapsed());
|
|
|
|
|
|
let vote_note_2 = {
|
|
|
@@ -693,13 +687,12 @@ async fn integration_test() -> Result<()> {
|
|
|
tx.signatures = vec![sigs];
|
|
|
|
|
|
let timer = Instant::now();
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
vote_verify_times.push(timer.elapsed());
|
|
|
|
|
|
// Secret vote info. Needs to be revealed at some point.
|
|
|
@@ -881,13 +874,12 @@ async fn integration_test() -> Result<()> {
|
|
|
tx.signatures = vec![xfer_sigs, exec_sigs];
|
|
|
|
|
|
let timer = Instant::now();
|
|
|
- let erroneous_txs = dao_th
|
|
|
- .alice_state
|
|
|
+ dao_th
|
|
|
+ .alice_validator
|
|
|
.read()
|
|
|
.await
|
|
|
.verify_transactions(&[tx.clone()], current_slot, true)
|
|
|
.await?;
|
|
|
- assert!(erroneous_txs.is_empty());
|
|
|
exec_verify_times.push(timer.elapsed());
|
|
|
|
|
|
// Statistics
|