Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 4fc7f89

Browse files
authored
Merge pull request #718 from iotaledger/failure-map-migration
Migrate failure maps to iota.go
2 parents 715a4bd + d178dcd commit 4fc7f89

File tree

12 files changed

+57
-137
lines changed

12 files changed

+57
-137
lines changed

Diff for: components/app/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
Name = "iota-core"
2626

2727
// Version of the app.
28-
Version = "1.0.0-alpha.4"
28+
Version = "1.0.0-alpha.5"
2929
)
3030

3131
func App() *app.App {

Diff for: go.mod

+7-6
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ require (
2626
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20240125161730-faf053c90f7b
2727
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20240125161426-1846f6320506
2828
github.com/iotaledger/iota-crypto-demo v0.0.0-20231208171603-786bb32fdb00
29-
github.com/iotaledger/iota.go/v4 v4.0.0-20240125151023-8623fbbce914
29+
github.com/iotaledger/iota.go/v4 v4.0.0-20240205131109-72af13887479
3030
github.com/labstack/echo/v4 v4.11.4
3131
github.com/labstack/gommon v0.4.2
3232
github.com/libp2p/go-libp2p v0.32.2
3333
github.com/libp2p/go-libp2p-kad-dht v0.25.2
3434
github.com/mr-tron/base58 v1.2.0
35-
github.com/multiformats/go-multiaddr v0.12.1
35+
github.com/multiformats/go-multiaddr v0.12.2
3636
github.com/multiformats/go-varint v0.0.7
3737
github.com/otiai10/copy v1.14.0
3838
github.com/prometheus/client_golang v1.18.0
@@ -65,7 +65,7 @@ require (
6565
github.com/fatih/structs v1.1.0 // indirect
6666
github.com/felixge/fgprof v0.9.3 // indirect
6767
github.com/fjl/memsize v0.0.2 // indirect
68-
github.com/flynn/noise v1.0.1 // indirect
68+
github.com/flynn/noise v1.1.0 // indirect
6969
github.com/fogleman/gg v1.3.0 // indirect
7070
github.com/francoispqt/gojay v1.2.13 // indirect
7171
github.com/fsnotify/fsnotify v1.7.0 // indirect
@@ -79,7 +79,7 @@ require (
7979
github.com/google/go-github v17.0.0+incompatible // indirect
8080
github.com/google/go-querystring v1.1.0 // indirect
8181
github.com/google/gopacket v1.1.19 // indirect
82-
github.com/google/pprof v0.0.0-20240125082051-42cd04596328 // indirect
82+
github.com/google/pprof v0.0.0-20240130152714-0ed6a68c8d9e // indirect
8383
github.com/hashicorp/errwrap v1.1.0 // indirect
8484
github.com/hashicorp/go-multierror v1.1.1 // indirect
8585
github.com/hashicorp/go-version v1.6.0 // indirect
@@ -97,7 +97,7 @@ require (
9797
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
9898
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
9999
github.com/jbenet/goprocess v0.1.4 // indirect
100-
github.com/klauspost/compress v1.17.4 // indirect
100+
github.com/klauspost/compress v1.17.5 // indirect
101101
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
102102
github.com/knadh/koanf v1.5.0 // indirect
103103
github.com/koron/go-ssdp v0.0.4 // indirect
@@ -150,6 +150,7 @@ require (
150150
github.com/quic-go/quic-go v0.41.0 // indirect
151151
github.com/quic-go/webtransport-go v0.6.0 // indirect
152152
github.com/raulk/go-watchdog v1.3.0 // indirect
153+
github.com/samber/lo v1.39.0 // indirect
153154
github.com/sasha-s/go-deadlock v0.3.1 // indirect
154155
github.com/spaolacci/murmur3 v1.1.0 // indirect
155156
github.com/spf13/cast v1.6.0 // indirect
@@ -175,7 +176,7 @@ require (
175176
golang.org/x/time v0.5.0 // indirect
176177
golang.org/x/tools v0.17.0 // indirect
177178
gonum.org/v1/gonum v0.14.0 // indirect
178-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
179+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
179180
gopkg.in/yaml.v2 v2.4.0 // indirect
180181
gopkg.in/yaml.v3 v3.0.1 // indirect
181182
lukechampine.com/blake3 v1.2.1 // indirect

Diff for: go.sum

+12-12
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNu
109109
github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA=
110110
github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
111111
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
112-
github.com/flynn/noise v1.0.1 h1:vPp/jdQLXC6ppsXSj/pM3W1BIJ5FEHE2TulSJBpb43Y=
113-
github.com/flynn/noise v1.0.1/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag=
112+
github.com/flynn/noise v1.1.0 h1:KjPQoQCEFdZDiP03phOvGi11+SVVhBG2wOWAorLsstg=
113+
github.com/flynn/noise v1.1.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag=
114114
github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8=
115115
github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
116116
github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk=
@@ -204,8 +204,8 @@ github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo
204204
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
205205
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
206206
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg=
207-
github.com/google/pprof v0.0.0-20240125082051-42cd04596328 h1:oI+lCI2DY1BsRrdzMJBhIMxBBdlZJl31YNQC11EiyvA=
208-
github.com/google/pprof v0.0.0-20240125082051-42cd04596328/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik=
207+
github.com/google/pprof v0.0.0-20240130152714-0ed6a68c8d9e h1:E+3PBMCXn0ma79O7iCrne0iUpKtZ7rIcZvoz+jNtNtw=
208+
github.com/google/pprof v0.0.0-20240130152714-0ed6a68c8d9e/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik=
209209
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
210210
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
211211
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
@@ -309,8 +309,8 @@ github.com/iotaledger/inx/go v1.0.0-rc.2.0.20240125161426-1846f6320506 h1:Z7twy8
309309
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20240125161426-1846f6320506/go.mod h1:x8dn1yT4TtyucfQz1Qb4LrqjdxmOMy7oiRiVedLD2/s=
310310
github.com/iotaledger/iota-crypto-demo v0.0.0-20231208171603-786bb32fdb00 h1:j5udgLtSN6wQgFI9vnhkdJsqsVdJmwtoc0yOmT/Ila4=
311311
github.com/iotaledger/iota-crypto-demo v0.0.0-20231208171603-786bb32fdb00/go.mod h1:gt+URx7DZu414nZME7jtGgxR4DVTSnNa1jF2trTUTZ0=
312-
github.com/iotaledger/iota.go/v4 v4.0.0-20240125151023-8623fbbce914 h1:p/Ytvv+wlnj5UNd1vdKT4BFS9o63sicb8HVC4XleUUI=
313-
github.com/iotaledger/iota.go/v4 v4.0.0-20240125151023-8623fbbce914/go.mod h1:GNDWMpc9sO3H2HJQMlGiOpyAAbT9I1kUx+YH6kkmVpY=
312+
github.com/iotaledger/iota.go/v4 v4.0.0-20240205131109-72af13887479 h1:YrPVCuzSLUAeewXjip4B3g8WkpVweXDqtZNt3kppaoU=
313+
github.com/iotaledger/iota.go/v4 v4.0.0-20240205131109-72af13887479/go.mod h1:f7N7GyRbW4B0UWMvCeiXOrYiP9T2HVaQnZqP2zaZSo8=
314314
github.com/ipfs/boxo v0.17.0 h1:fVXAb12dNbraCX1Cdid5BB6Kl62gVLNVA+e0EYMqAU0=
315315
github.com/ipfs/boxo v0.17.0/go.mod h1:pIZgTWdm3k3pLF9Uq6MB8JEcW07UDwNJjlXW1HELW80=
316316
github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s=
@@ -352,8 +352,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8
352352
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
353353
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
354354
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
355-
github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4=
356-
github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM=
355+
github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E=
356+
github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM=
357357
github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc=
358358
github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
359359
github.com/knadh/koanf v1.5.0 h1:q2TSd/3Pyc/5yP9ldIrSdIz26MCcyNQzW0pEAugLPNs=
@@ -470,8 +470,8 @@ github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9
470470
github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4=
471471
github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo=
472472
github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4=
473-
github.com/multiformats/go-multiaddr v0.12.1 h1:vm+BA/WZA8QZDp1pF1FWhi5CT3g1tbi5GJmqpb6wnlk=
474-
github.com/multiformats/go-multiaddr v0.12.1/go.mod h1:7mPkiBMmLeFipt+nNSq9pHZUeJSt8lHBgH6yhj0YQzE=
473+
github.com/multiformats/go-multiaddr v0.12.2 h1:9G9sTY/wCYajKa9lyfWPmpZAwe6oV+Wb1zcmMS1HG24=
474+
github.com/multiformats/go-multiaddr v0.12.2/go.mod h1:GKyaTYjZRdcUhyOetrxTk9z0cW+jA/YrnqTOvKgi44M=
475475
github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A=
476476
github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk=
477477
github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E=
@@ -872,8 +872,8 @@ google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98
872872
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
873873
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
874874
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
875-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM=
876-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s=
875+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe h1:bQnxqljG/wqi4NTXu2+DJ3n7APcEA882QZ1JvhQAq9o=
876+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s=
877877
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
878878
google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio=
879879
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=

Diff for: pkg/protocol/engine/ledger/ledger/ledger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ func (l *Ledger) resolveState(stateRef mempool.StateReference) *promise.Promise[
741741
commitment := stateRef.(mempool.CommitmentInputStateRef).Input
742742
loadedCommitment, err := l.loadCommitment(commitment.CommitmentID)
743743
if err != nil {
744-
return p.Reject(ierrors.Join(iotago.ErrCommitmentInputInvalid, ierrors.Wrapf(err, "failed to load commitment %s", commitment.CommitmentID)))
744+
return p.Reject(ierrors.Join(iotago.ErrCommitmentInputReferenceInvalid, ierrors.Wrapf(err, "failed to load commitment %s", commitment.CommitmentID)))
745745
}
746746

747747
return p.Resolve(mempool.CommitmentInputStateFromCommitment(loadedCommitment))

Diff for: pkg/protocol/engine/ledger/ledger/vm.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ func (v *VM) ValidateSignatures(signedTransaction mempool.SignedTransaction, res
101101
for _, inp := range bicInputs {
102102
accountData, exists, accountErr := v.ledger.accountsLedger.Account(inp.AccountID, commitmentInput.Slot)
103103
if accountErr != nil {
104-
return nil, ierrors.Join(iotago.ErrBICInputInvalid, ierrors.Wrapf(accountErr, "could not get BIC input for account %s in slot %d", inp.AccountID, commitmentInput.Slot))
104+
return nil, ierrors.Join(iotago.ErrBICInputReferenceInvalid, ierrors.Wrapf(accountErr, "could not get BIC input for account %s in slot %d", inp.AccountID, commitmentInput.Slot))
105105
}
106106
if !exists {
107-
return nil, ierrors.Join(iotago.ErrBICInputInvalid, ierrors.Errorf("BIC input does not exist for account %s in slot %d", inp.AccountID, commitmentInput.Slot))
107+
return nil, ierrors.Join(iotago.ErrBICInputReferenceInvalid, ierrors.Errorf("BIC input does not exist for account %s in slot %d", inp.AccountID, commitmentInput.Slot))
108108
}
109109

110110
bicInputSet[inp.AccountID] = accountData.Credits.Value
@@ -114,15 +114,15 @@ func (v *VM) ValidateSignatures(signedTransaction mempool.SignedTransaction, res
114114
for _, inp := range rewardInputs {
115115
output, ok := resolvedInputStates[inp.Index].(*utxoledger.Output)
116116
if !ok {
117-
return nil, ierrors.Wrapf(iotago.ErrRewardInputInvalid, "input at index %d is not an UTXO output", inp.Index)
117+
return nil, ierrors.Wrapf(iotago.ErrRewardInputReferenceInvalid, "input at index %d is not an UTXO output", inp.Index)
118118
}
119119
outputID := output.OutputID()
120120

121121
switch castOutput := output.Output().(type) {
122122
case *iotago.AccountOutput:
123123
stakingFeature := castOutput.FeatureSet().Staking()
124124
if stakingFeature == nil {
125-
return nil, ierrors.Wrapf(iotago.ErrNoStakingFeature, "cannot claim rewards from an AccountOutput %s at index %d without staking feature", outputID, inp.Index)
125+
return nil, ierrors.Wrapf(iotago.ErrRewardInputReferenceInvalid, "cannot claim rewards from an AccountOutput %s at index %d without staking feature", outputID, inp.Index)
126126
}
127127
accountID := castOutput.AccountID
128128
if accountID.Empty() {
@@ -135,7 +135,7 @@ func (v *VM) ValidateSignatures(signedTransaction mempool.SignedTransaction, res
135135

136136
reward, _, _, rewardErr := v.ledger.sybilProtection.ValidatorReward(accountID, stakingFeature, claimingEpoch)
137137
if rewardErr != nil {
138-
return nil, ierrors.Wrapf(iotago.ErrFailedToClaimStakingReward, "failed to get Validator reward for AccountOutput %s at index %d (StakedAmount: %d, StartEpoch: %d, EndEpoch: %d, claimingEpoch: %d", outputID, inp.Index, stakingFeature.StakedAmount, stakingFeature.StartEpoch, stakingFeature.EndEpoch, claimingEpoch)
138+
return nil, ierrors.Wrapf(iotago.ErrStakingRewardCalculationFailure, "failed to get Validator reward for AccountOutput %s at index %d (StakedAmount: %d, StartEpoch: %d, EndEpoch: %d, claimingEpoch: %d", outputID, inp.Index, stakingFeature.StakedAmount, stakingFeature.StartEpoch, stakingFeature.EndEpoch, claimingEpoch)
139139
}
140140

141141
rewardInputSet[accountID] = reward
@@ -158,12 +158,12 @@ func (v *VM) ValidateSignatures(signedTransaction mempool.SignedTransaction, res
158158

159159
reward, _, _, rewardErr := v.ledger.sybilProtection.DelegatorReward(castOutput.ValidatorAddress.AccountID(), castOutput.DelegatedAmount, castOutput.StartEpoch, delegationEnd, claimingEpoch)
160160
if rewardErr != nil {
161-
return nil, ierrors.Wrapf(iotago.ErrFailedToClaimDelegationReward, "failed to get Delegator reward for DelegationOutput %s at index %d (StakedAmount: %d, StartEpoch: %d, EndEpoch: %d", outputID, inp.Index, castOutput.DelegatedAmount, castOutput.StartEpoch, castOutput.EndEpoch)
161+
return nil, ierrors.Wrapf(iotago.ErrDelegationRewardCalculationFailure, "failed to get Delegator reward for DelegationOutput %s at index %d (StakedAmount: %d, StartEpoch: %d, EndEpoch: %d", outputID, inp.Index, castOutput.DelegatedAmount, castOutput.StartEpoch, castOutput.EndEpoch)
162162
}
163163

164164
rewardInputSet[delegationID] = reward
165165
default:
166-
return nil, ierrors.Wrapf(iotago.ErrRewardInputInvalid, "reward input cannot point to %s", output.Output().Type())
166+
return nil, ierrors.Wrapf(iotago.ErrRewardInputReferenceInvalid, "reward input cannot point to %s", output.Output().Type())
167167
}
168168
}
169169

Diff for: pkg/retainer/retainer/errors.go

-83
This file was deleted.

Diff for: pkg/retainer/retainer/retainer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func NewProvider() module.Provider[*engine.Engine, retainer.Retainer] {
8282
}, asyncOpt)
8383

8484
e.Events.PostSolidFilter.BlockFiltered.Hook(func(e *postsolidfilter.BlockFilteredEvent) {
85-
r.RetainBlockFailure(e.Block.ID(), determineBlockFailureReason(e.Reason))
85+
r.RetainBlockFailure(e.Block.ID(), api.DetermineBlockFailureReason(e.Reason))
8686
}, asyncOpt)
8787

8888
e.Events.BlockGadget.BlockAccepted.Hook(func(b *blocks.Block) {
@@ -206,7 +206,7 @@ func (r *Retainer) RetainTransactionFailure(blockID iotago.BlockID, err error) {
206206
return
207207
}
208208

209-
if err := store.StoreTransactionFailure(blockID, determineTxFailureReason(err)); err != nil {
209+
if err := store.StoreTransactionFailure(blockID, api.DetermineTransactionFailureReason(err)); err != nil {
210210
r.errorHandler(ierrors.Wrap(err, "failed to store transaction failure in retainer"))
211211
}
212212
}

Diff for: pkg/tests/reward_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func Test_RewardInputCannotPointToNFTOutput(t *testing.T) {
246246

247247
ts.AssertTransactionsExist([]*iotago.Transaction{tx2.Transaction}, true, node1, node2)
248248
signedTx2ID := lo.PanicOnErr(tx2.ID())
249-
ts.AssertTransactionFailure(signedTx2ID, iotago.ErrRewardInputInvalid, node1, node2)
249+
ts.AssertTransactionFailure(signedTx2ID, iotago.ErrRewardInputReferenceInvalid, node1, node2)
250250
}
251251

252252
// Test that delegations in all forms are correctly reflected in the staked and delegated amounts.

0 commit comments

Comments
 (0)