diff --git a/consensus/current_test.go b/consensus/current_test.go new file mode 100644 index 0000000..efb9de6 --- /dev/null +++ b/consensus/current_test.go @@ -0,0 +1,14 @@ +package consensus + +import ( + "testing" + + "github.com/ubclaunchpad/cumulus/blockchain" + c "github.com/ubclaunchpad/cumulus/common/constants" +) + +func TestCurrentTarget(t *testing.T) { + if blockchain.HashToBigInt(CurrentTarget()).Cmp(c.MaxTarget) != 0 { + t.Fail() + } +}