Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
1727e318
Commit
1727e318
authored
Jan 08, 2020
by
jiangpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chain33
parent
f35ed63b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
ticket.go
plugin/consensus/ticket/ticket.go
+1
-4
No files found.
go.mod
View file @
1727e318
...
...
@@ -3,7 +3,7 @@ module github.com/33cn/plugin
go 1.12
require (
github.com/33cn/chain33 v0.0.0-20
191230031247-b56730d527a0
github.com/33cn/chain33 v0.0.0-20
200108042336-2dda2dfb7e0e
github.com/BurntSushi/toml v0.3.1
github.com/NebulousLabs/Sia v1.3.7
github.com/btcsuite/btcd v0.0.0-20181013004428-67e573d211ac
...
...
go.sum
View file @
1727e318
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/33cn/chain33 v0.0.0-20
191230031247-b56730d527a0 h1:U8qOKXeidZsyGGy/KN5fNQV1B9l28DvG52Ezqiv+4n
c=
github.com/33cn/chain33 v0.0.0-20
191230031247-b56730d527a0
/go.mod h1:4I8n+Zyf3t0UKM5jjpqJY627Tub62oXkLsdzIv4r6rQ=
github.com/33cn/chain33 v0.0.0-20
200108042336-2dda2dfb7e0e h1:FMnJCJUDEsjHURlHv3zqiiftvNCtTbsMSjXSykG7ht
c=
github.com/33cn/chain33 v0.0.0-20
200108042336-2dda2dfb7e0e
/go.mod h1:4I8n+Zyf3t0UKM5jjpqJY627Tub62oXkLsdzIv4r6rQ=
github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7 h1:PqzgE6kAMi81xWQA2QIVxjWkFHptGgC547vchpUbtFo=
github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
...
...
plugin/consensus/ticket/ticket.go
View file @
1727e318
...
...
@@ -819,8 +819,5 @@ func (client *Client) CmpBestBlock(newBlock *types.Block, cmpBlock *types.Block)
cmpBlockDiff
:=
client
.
getCurrentTarget
(
cmpBlock
.
BlockTime
,
cmpBlockMiner
.
TicketId
,
cmpBlockMiner
.
Modify
,
cmpBlockMiner
.
PrivHash
)
//数字越小难度越大
if
newBlockDiff
.
Cmp
(
cmpBlockDiff
)
<
0
{
return
true
}
return
false
return
newBlockDiff
.
Cmp
(
cmpBlockDiff
)
<
0
}
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