Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
2b0e0689
Commit
2b0e0689
authored
5 years ago
by
capossele
Browse files
Options
Downloads
Patches
Plain Diff
removes goshimmer error package
parent
65a91713
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/relay-checker/main.go
+3
-4
3 additions, 4 deletions
tools/relay-checker/main.go
with
3 additions
and
4 deletions
tools/relay-checker/main.go
+
3
−
4
View file @
2b0e0689
...
...
@@ -5,14 +5,13 @@ import (
"time"
client
"github.com/iotaledger/goshimmer/client"
"github.com/iotaledger/goshimmer/packages/errors"
"github.com/iotaledger/iota.go/trinary"
)
func
testBroadcastData
(
api
*
client
.
GoShimmerAPI
)
(
trinary
.
Hash
,
error
)
{
txnHash
,
err
:=
api
.
BroadcastData
(
txnAddr
,
txnData
)
if
err
!=
nil
{
return
""
,
errors
.
Wrapf
(
err
,
"B
roadcast failed"
)
return
""
,
fmt
.
Errorf
(
"%w: b
roadcast failed"
,
err
)
}
return
txnHash
,
nil
}
...
...
@@ -21,7 +20,7 @@ func testTargetGetTransactions(api *client.GoShimmerAPI, txnHash trinary.Hash) e
// query target node for broadcasted data
_
,
err
:=
api
.
GetTransactions
([]
trinary
.
Hash
{
txnHash
})
if
err
!=
nil
{
return
errors
.
Wrapf
(
err
,
"Q
uery target failed"
)
return
fmt
.
Errorf
(
"%w: q
uery target failed"
,
err
)
}
return
nil
}
...
...
@@ -32,7 +31,7 @@ func testNodesGetTransactions(txnHash trinary.Hash) error {
nodesApi
:=
client
.
NewGoShimmerAPI
(
n
)
_
,
err
:=
nodesApi
.
GetTransactions
([]
trinary
.
Hash
{
txnHash
})
if
err
!=
nil
{
return
errors
.
Wrapf
(
err
,
"Q
uery %s failed"
,
n
)
return
fmt
.
Errorf
(
"%w: q
uery %s failed"
,
err
,
n
)
}
fmt
.
Printf
(
"txn found in %s
\n
"
,
n
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment