Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
47b4a0ed
Unverified
Commit
47b4a0ed
authored
Jul 05, 2021
by
istae
Committed by
GitHub
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: deep source (#2290)
parent
6f74a2f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
node.go
pkg/node/node.go
+1
-1
backend.go
pkg/transaction/backend.go
+1
-1
No files found.
pkg/node/node.go
View file @
47b4a0ed
...
...
@@ -275,7 +275,7 @@ func NewBee(addr string, publicKey *ecdsa.PublicKey, signer crypto.Signer, netwo
if
!
isSynced
{
logger
.
Infof
(
"waiting to sync with the Ethereum backend"
)
err
:=
transaction
.
WaitSynced
(
logger
,
p2pCtx
,
swapBackend
,
maxDelay
)
err
:=
transaction
.
WaitSynced
(
p2pCtx
,
logger
,
swapBackend
,
maxDelay
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"waiting backend sync: %w"
,
err
)
}
...
...
pkg/transaction/backend.go
View file @
47b4a0ed
...
...
@@ -55,7 +55,7 @@ func IsSynced(ctx context.Context, backend Backend, maxDelay time.Duration) (boo
// WaitSynced will wait until we are synced with the given blockchain backend,
// with the given maxDelay duration as the maximum time we can be behind the
// last block.
func
WaitSynced
(
logger
logging
.
Logger
,
ctx
context
.
Context
,
backend
Backend
,
maxDelay
time
.
Duration
)
error
{
func
WaitSynced
(
ctx
context
.
Context
,
logger
logging
.
Logger
,
backend
Backend
,
maxDelay
time
.
Duration
)
error
{
for
{
synced
,
blockTime
,
err
:=
IsSynced
(
ctx
,
backend
,
maxDelay
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment