10 lines
		
	
	
		
			212 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			212 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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
 | |
| }
 |