Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Jul 12, 2021
1 parent 34e53f0 commit 4caf7a8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions consensus/cuckoo/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ func calcDifficultyByzantium(time uint64, parent *types.Header) *big.Int {
x.Set(big0)
}

// TODO
if parent.Difficulty.Cmp(params.MeanDifficultyBoundDivisor) >= 0 && parent.Difficulty.Cmp(params.HighDifficultyBoundDivisor) < 0 {
y.Div(parent.Difficulty, params.MeanDifficultyBoundDivisor)
} else if parent.Difficulty.Cmp(params.HighDifficultyBoundDivisor) >= 0 {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/Azure/azure-storage-blob-go v0.8.1-0.20191213204130-762620a866ba
github.com/CortexFoundation/inference v0.0.0-20210706060454-ada520ff9946
github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66
github.com/CortexFoundation/torrentfs v1.0.23-0.20210702063150-4523491e0ae7
github.com/CortexFoundation/torrentfs v1.0.24-0.20210702071746-5d18cdc0f12b
github.com/VictoriaMetrics/fastcache v1.5.8
github.com/allegro/bigcache/v3 v3.0.0 // indirect
github.com/arsham/figurine v1.0.1
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ github.com/CortexFoundation/torrentfs v1.0.20-0.20200810031954-d36d26f82fcc/go.m
github.com/CortexFoundation/torrentfs v1.0.22-0.20201126093427-f455d2481b9b/go.mod h1:lcAYtGEoWAeIhWH/JpXno34eNA17xslgwg6UBBd769U=
github.com/CortexFoundation/torrentfs v1.0.23-0.20210119015245-ae2a4c2c966c/go.mod h1:iyTtPicpVt2NTVGDyhQ1LurDZFB/uR0R2dK22Pv3M1g=
github.com/CortexFoundation/torrentfs v1.0.23-0.20210312032424-2ec30f482b4f/go.mod h1:u718eB+2YjIlvyoi/aUuKpKpLjnfIdGZxljWFI3EXFc=
github.com/CortexFoundation/torrentfs v1.0.23-0.20210702063150-4523491e0ae7 h1:n+Fh0sXYiN1mvOB0IRwemhCJ6KAN47j+MxZcAfnMJvU=
github.com/CortexFoundation/torrentfs v1.0.23-0.20210702063150-4523491e0ae7/go.mod h1:4sLT6ms8kUyqRA+4a5XbF5r5ifzjwsqfD/OOGQ5/zbs=
github.com/CortexFoundation/torrentfs v1.0.24-0.20210702071746-5d18cdc0f12b h1:DuvE8tfxUXQn7hDdx6fF4hrSLbPrIwPsZQFD9o6VJzU=
github.com/CortexFoundation/torrentfs v1.0.24-0.20210702071746-5d18cdc0f12b/go.mod h1:4sLT6ms8kUyqRA+4a5XbF5r5ifzjwsqfD/OOGQ5/zbs=
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/Julusian/godocdown v0.0.0-20170816220326-6d19f8ff2df8/go.mod h1:INZr5t32rG59/5xeltqoCJoNY7e5x/3xoY9WSWVWg74=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
Expand Down
8 changes: 4 additions & 4 deletions params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
)

const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 10 // Minor version component of the current release
VersionPatch = 25 // Patch version component of the current release
VersionMeta = "unstable" // Version metadata to append to the version string
VersionMajor = 1 // Major version component of the current release
VersionMinor = 10 // Minor version component of the current release
VersionPatch = 25 // Patch version component of the current release
VersionMeta = "stable" // Version metadata to append to the version string
)

// Version holds the textual version string.
Expand Down
2 changes: 2 additions & 0 deletions vendor/github.com/CortexFoundation/torrentfs/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ github.com/CortexFoundation/merkletree
# github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66
## explicit
github.com/CortexFoundation/statik
# github.com/CortexFoundation/torrentfs v1.0.23-0.20210702063150-4523491e0ae7
# github.com/CortexFoundation/torrentfs v1.0.24-0.20210702071746-5d18cdc0f12b
## explicit
github.com/CortexFoundation/torrentfs
github.com/CortexFoundation/torrentfs/compress
Expand Down

0 comments on commit 4caf7a8

Please sign in to comment.