diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-12 09:56:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 09:56:03 +0800 |
commit | 0e8fda250804b9c46232287a18af05e7ccf5bf72 (patch) | |
tree | bf4629c34bb61b99f4c51d632df2da9ced54c8bb /core/utils.go | |
parent | 292ad73ec08621fa9beef5f028860131fcbf9bd9 (diff) | |
download | tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.gz tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.bz2 tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.lz tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.xz tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.zst tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.zip |
core: total ordering with chain ID (#100)
Diffstat (limited to 'core/utils.go')
-rw-r--r-- | core/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/utils.go b/core/utils.go index 59aa7a4..7aa99f0 100644 --- a/core/utils.go +++ b/core/utils.go @@ -92,7 +92,7 @@ func getMedianTime(timestamps []time.Time) (t time.Time, err error) { return } -func removeFromSortedIntSlice(xs []int, x int) []int { +func removeFromSortedUint32Slice(xs []uint32, x uint32) []uint32 { indexToRemove := sort.Search(len(xs), func(idx int) bool { return xs[idx] >= x }) |