@ -27,7 +27,7 @@
@@ -27,7 +27,7 @@
alert . nID = 1 ;
alert . nCancel = 0 ; // cancels previous messages up to this ID number
alert . nMinVer = 0 ; // These versions are protocol versions
alert . nMaxVer = 70 001;
alert . nMaxVer = 999 001;
alert . nPriority = 1 ;
alert . strComment = " Alert comment " ;
alert . strStatusBar = " Alert 1 " ;
@ -121,25 +121,25 @@ BOOST_AUTO_TEST_CASE(AlertApplies)
@@ -121,25 +121,25 @@ BOOST_AUTO_TEST_CASE(AlertApplies)
// Matches:
BOOST_CHECK ( alerts [ 0 ] . AppliesTo ( 1 , " " ) ) ;
BOOST_CHECK ( alerts [ 0 ] . AppliesTo ( 70 001, " " ) ) ;
BOOST_CHECK ( alerts [ 0 ] . AppliesTo ( 999 001, " " ) ) ;
BOOST_CHECK ( alerts [ 0 ] . AppliesTo ( 1 , " /Satoshi:11.11.11/ " ) ) ;
BOOST_CHECK ( alerts [ 1 ] . AppliesTo ( 1 , " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( alerts [ 1 ] . AppliesTo ( 70 001, " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( alerts [ 1 ] . AppliesTo ( 999 001, " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( alerts [ 2 ] . AppliesTo ( 1 , " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( alerts [ 2 ] . AppliesTo ( 1 , " /Satoshi:0.2.0/ " ) ) ;
// Don't match:
BOOST_CHECK ( ! alerts [ 0 ] . AppliesTo ( - 1 , " " ) ) ;
BOOST_CHECK ( ! alerts [ 0 ] . AppliesTo ( 70 002, " " ) ) ;
BOOST_CHECK ( ! alerts [ 0 ] . AppliesTo ( 999 002, " " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 1 , " " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 1 , " Satoshi:0.1.0 " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 1 , " /Satoshi:0.1.0 " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 1 , " Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( - 1 , " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 70 002, " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 999 002, " /Satoshi:0.1.0/ " ) ) ;
BOOST_CHECK ( ! alerts [ 1 ] . AppliesTo ( 1 , " /Satoshi:0.2.0/ " ) ) ;
BOOST_CHECK ( ! alerts [ 2 ] . AppliesTo ( 1 , " /Satoshi:0.3.0/ " ) ) ;