Add the missing file

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-12-19 22:10:45 +01:00
parent c7e3e9fa7f
commit e777b879a1
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

9
build/isnearupgrade.go Normal file
View File

@ -0,0 +1,9 @@
package build
import (
"github.com/filecoin-project/go-state-types/abi"
)
func IsNearUpgrade(epoch, upgradeEpoch abi.ChainEpoch) bool {
return epoch > upgradeEpoch-Finality && epoch < upgradeEpoch+Finality
}