diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-20 10:47:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 10:47:06 +0800 |
commit | e5891f7ca08737c3f3bc37fd523537cb243f8b0d (patch) | |
tree | 5dcf1d85b7a177320eb9016f5745ca48189ce3b5 | |
parent | c04e6890b601fdca3e30a716121689562cfca5d7 (diff) | |
download | dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.tar dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.tar.gz dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.tar.bz2 dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.tar.lz dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.tar.xz dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.tar.zst dexon-consensus-e5891f7ca08737c3f3bc37fd523537cb243f8b0d.zip |
core: Add function alias (#341)
-rw-r--r-- | core/utils.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/utils.go b/core/utils.go index a3da340..f6be461 100644 --- a/core/utils.go +++ b/core/utils.go @@ -34,6 +34,10 @@ import ( // it to core/utils package. type NodeSetCache = utils.NodeSetCache +// NewNodeSetCache is function alias to avoid fullnode compile error when moving +// it to core/utils package. +var NewNodeSetCache = utils.NewNodeSetCache + var ( debug = false // ErrEmptyTimestamps would be reported if Block.timestamps is empty. |