aboutsummaryrefslogtreecommitdiff
path: root/contrib/test-patches/temp-revert-1.patch
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2013-04-11 16:53:57 -0400
committerMatt Corallo <git@bluematt.me>2013-04-11 18:07:22 -0400
commit84db464b10036ce5f2d3a6276b2047fd87dec9d8 (patch)
tree2b69cedb714ee9de55268ac3635bcc86782c588e /contrib/test-patches/temp-revert-1.patch
parent3656a3c55833ee6afbe12f41fc7ab2471725e322 (diff)
Add test patches for pull-tester to contrib/
Diffstat (limited to 'contrib/test-patches/temp-revert-1.patch')
-rw-r--r--contrib/test-patches/temp-revert-1.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/test-patches/temp-revert-1.patch b/contrib/test-patches/temp-revert-1.patch
new file mode 100644
index 0000000000..a5aec641ce
--- /dev/null
+++ b/contrib/test-patches/temp-revert-1.patch
@@ -0,0 +1,21 @@
+commit 4dcc8701ac0eb09d8992d19fb411cee3c9aaf394
+Author: Matt Corallo <git@bluematt.me>
+Date: Sun Mar 24 20:45:44 2013 -0400
+
+ Revert "Update unit test to match rule enforcement starts 21 March"
+
+ This reverts commit d3e8c6a9d3fad68b0eee4434401ec7b3066399a2.
+
+diff --git a/src/test/checkblock_tests.cpp b/src/test/checkblock_tests.cpp
+index 3cfb6db..e167def 100644
+--- a/src/test/checkblock_tests.cpp
++++ b/src/test/checkblock_tests.cpp
+@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE(May15)
+ if (read_block("Mar12Fork.dat", forkingBlock))
+ {
+ CValidationState state;
+- forkingBlock.nTime = tMay15-1; // Invalidates PoW
++ BOOST_CHECK(!forkingBlock.CheckBlock(state, true, true));
+ BOOST_CHECK(!forkingBlock.CheckBlock(state, false, false));
+
+ // After May 15'th, big blocks are OK: