|
@@ -120,14 +120,14 @@ fn pow_reward() -> Result<()> {
|
|
|
|
|
|
|
|
th.assert_trees(&HOLDERS);
|
|
th.assert_trees(&HOLDERS);
|
|
|
|
|
|
|
|
|
|
+ // Bob should have this new OwnCoin.
|
|
|
|
|
+ let bob_oc = th.gather_owncoin(&Holder::Bob, &transfer_params.outputs[0], None)?;
|
|
|
|
|
+ bob_owncoins.push(bob_oc);
|
|
|
|
|
+
|
|
|
// Alice should now have one OwnCoin with the change from the above transaction.
|
|
// Alice should now have one OwnCoin with the change from the above transaction.
|
|
|
- let alice_oc = th.gather_owncoin(&Holder::Alice, &transfer_params.outputs[0], None)?;
|
|
|
|
|
|
|
+ let alice_oc = th.gather_owncoin(&Holder::Alice, &transfer_params.outputs[1], None)?;
|
|
|
alice_owncoins.push(alice_oc);
|
|
alice_owncoins.push(alice_oc);
|
|
|
|
|
|
|
|
- // Bob should have this new one.
|
|
|
|
|
- let bob_oc = th.gather_owncoin(&Holder::Bob, &transfer_params.outputs[1], None)?;
|
|
|
|
|
- bob_owncoins.push(bob_oc);
|
|
|
|
|
-
|
|
|
|
|
// Alice can also send her PoW reward directly to bob
|
|
// Alice can also send her PoW reward directly to bob
|
|
|
current_height += 1;
|
|
current_height += 1;
|
|
|
th.generate_slot(current_height).await?;
|
|
th.generate_slot(current_height).await?;
|