From 1b765b974003219fe395a5b97afaf6cfa9f0d7ed Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 21 Nov 2011 13:29:16 +0200 Subject: Add reason parameter to setModified and print it out to verbosestream when saving block --- src/test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test.cpp') diff --git a/src/test.cpp b/src/test.cpp index 2a25ed656..f778f2d91 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -393,9 +393,9 @@ struct TestMapBlock MAP_BLOCKSIZE, MAP_BLOCKSIZE));*/ // Changed flag should be initially set - assert(b.getChangedFlag() == true); - b.resetChangedFlag(); - assert(b.getChangedFlag() == false); + assert(b.getModified() == MOD_STATE_WRITE_NEEDED); + b.resetModified(); + assert(b.getModified() == MOD_STATE_CLEAN); // All nodes should have been set to // .d=CONTENT_IGNORE and .getLight() = 0 -- cgit v1.2.3