Skip to content
Snippets Groups Projects
Unverified Commit e91a0772 authored by Silas Davis's avatar Silas Davis
Browse files

arch -> util/architecture

parent 1afdb99b
No related merge requests found
......@@ -7,10 +7,10 @@ import (
"sync"
"github.com/eris-ltd/eris-db/arch"
blockchain_types "github.com/eris-ltd/eris-db/blockchain/types"
core_types "github.com/eris-ltd/eris-db/core/types"
"github.com/eris-ltd/eris-db/event"
"github.com/eris-ltd/eris-db/util/architecture"
tendermint_types "github.com/tendermint/tendermint/types"
)
......@@ -48,8 +48,8 @@ func FilterBlocks(blockchain blockchain_types.Blockchain,
height := blockchain.Height()
if height == 0 {
return &core_types.Blocks{
MinHeight: 0,
MaxHeight: 0,
MinHeight: 0,
MaxHeight: 0,
BlockMetas: []*tendermint_types.BlockMeta{},
}, nil
}
......@@ -87,7 +87,7 @@ func (blockHeightFilter *BlockHeightFilter) Configure(fd *event.FilterData) erro
if fd.Value == "min" {
val = 0
} else if fd.Value == "max" {
val = arch.MaxInt32
val = architecture.MaxInt32
} else {
tv, err := strconv.ParseInt(fd.Value, 10, 0)
if err != nil {
......
// +build !arm
package arch
package architecture
import "math"
......
package arch
package architecture
import "math"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment