Skip to content

Commit

Permalink
update checkTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Sep 11, 2024
1 parent ca4e755 commit f19d5d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions persist/sqlite/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ func TestSendTransactions(t *testing.T) {
}
check(t, "parent ID", expectSci.ParentID, gotSci.ParentID)
check(t, "unlock conditions", expectSci.UnlockConditions, gotSci.UnlockConditions)
check(t, "address", expectSci.UnlockConditions.UnlockHash(), gotSci.Address)
}
for i := range expectTxn.SiacoinOutputs {
expectSco := expectTxn.SiacoinOutputs[i]
Expand All @@ -461,6 +462,7 @@ func TestSendTransactions(t *testing.T) {
check(t, "parent ID", expectSfi.ParentID, gotSfi.ParentID)
check(t, "claim address", expectSfi.ClaimAddress, gotSfi.ClaimAddress)
check(t, "unlock conditions", expectSfi.UnlockConditions, gotSfi.UnlockConditions)
check(t, "address", expectSfi.UnlockConditions.UnlockHash(), gotSfi.Address)
}
for i := range expectTxn.SiafundOutputs {
expectSfo := expectTxn.SiafundOutputs[i]
Expand Down Expand Up @@ -1666,6 +1668,7 @@ func TestRevertSendTransactions(t *testing.T) {
}
check(t, "parent ID", expectSci.ParentID, gotSci.ParentID)
check(t, "unlock conditions", expectSci.UnlockConditions, gotSci.UnlockConditions)
check(t, "address", expectSci.UnlockConditions.UnlockHash(), gotSci.Address)
}
for i := range expectTxn.SiacoinOutputs {
expectSco := expectTxn.SiacoinOutputs[i]
Expand All @@ -1685,6 +1688,7 @@ func TestRevertSendTransactions(t *testing.T) {
check(t, "parent ID", expectSfi.ParentID, gotSfi.ParentID)
check(t, "claim address", expectSfi.ClaimAddress, gotSfi.ClaimAddress)
check(t, "unlock conditions", expectSfi.UnlockConditions, gotSfi.UnlockConditions)
check(t, "address", expectSfi.UnlockConditions.UnlockHash(), gotSfi.Address)
}
for i := range expectTxn.SiafundOutputs {
expectSfo := expectTxn.SiafundOutputs[i]
Expand Down

0 comments on commit f19d5d5

Please sign in to comment.