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
b2a8f3b1
Commit
b2a8f3b1
authored
Jun 25, 2021
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add error message.
parent
d8b5179e
Pipeline
#453
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
node.go
pkg/node/node.go
+3
-1
persistconfig.go
pkg/node/persistconfig.go
+2
-2
No files found.
pkg/node/node.go
View file @
b2a8f3b1
...
@@ -345,7 +345,9 @@ func NewBee(addr string, publicKey *ecdsa.PublicKey, signer crypto.Signer, netwo
...
@@ -345,7 +345,9 @@ func NewBee(addr string, publicKey *ecdsa.PublicKey, signer crypto.Signer, netwo
return
nil
,
fmt
.
Errorf
(
"invalid block hash: %w"
,
err
)
return
nil
,
fmt
.
Errorf
(
"invalid block hash: %w"
,
err
)
}
}
b
.
UpdateTxNextBlock
(
common
.
Bytes2Hex
(
txHash
),
common
.
Bytes2Hex
(
blockHash
))
if
err
:=
b
.
UpdateTxNextBlock
(
common
.
Bytes2Hex
(
txHash
),
common
.
Bytes2Hex
(
blockHash
));
err
!=
nil
{
logger
.
Errorf
(
"update txNextBlock failed: %v
\n
"
,
err
)
}
swarmAddress
,
err
:=
crypto
.
NewOverlayAddress
(
*
pubKey
,
networkID
,
blockHash
)
swarmAddress
,
err
:=
crypto
.
NewOverlayAddress
(
*
pubKey
,
networkID
,
blockHash
)
...
...
pkg/node/persistconfig.go
View file @
b2a8f3b1
...
@@ -56,8 +56,8 @@ func (c *Bee) GetNextBlock(txhash string) string {
...
@@ -56,8 +56,8 @@ func (c *Bee) GetNextBlock(txhash string) string {
return
""
return
""
}
}
func
(
c
*
Bee
)
UpdateTxNextBlock
(
txhash
string
,
nextBlock
string
)
{
func
(
c
*
Bee
)
UpdateTxNextBlock
(
txhash
string
,
nextBlock
string
)
(
err
error
)
{
c
.
persistCfg
.
ChequeBookTx
=
txhash
c
.
persistCfg
.
ChequeBookTx
=
txhash
c
.
persistCfg
.
TxNextBlockHash
=
nextBlock
c
.
persistCfg
.
TxNextBlockHash
=
nextBlock
c
.
SavePersistConfig
()
return
c
.
SavePersistConfig
()
}
}
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