From a5f6df4497282d193a5fcab79cfdec2af66b3c86 Mon Sep 17 00:00:00 2001 From: David Julien Date: Wed, 26 Jul 2017 16:38:34 -0400 Subject: [PATCH] current_test.go --- consensus/current_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 consensus/current_test.go 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() + } +}