Set TX processing change date to 2015-05-12 13:00:00PDT

This commit is contained in:
Nik Bougalis
2015-04-21 13:33:24 -07:00
committed by Vinnie Falco
parent 15d68649d5
commit bc85a8b24f
2 changed files with 2 additions and 13 deletions

View File

@@ -34,8 +34,8 @@ emulate027 (Ledger::ref ledger)
return false; return false;
// The server also uses 0.28 semantics for all ledgers whose parent // The server also uses 0.28 semantics for all ledgers whose parent
// closed after 2015-04-28 13:00:00 PDT. // closed after 2015-05-12 13:00:00 PDT.
static std::uint32_t const legacy_cutoff = 483566400; static std::uint32_t const legacy_cutoff = 484776000;
if (ledger->getParentCloseTimeNC () > legacy_cutoff) if (ledger->getParentCloseTimeNC () > legacy_cutoff)
return false; return false;

View File

@@ -32,7 +32,6 @@
#include <ripple/legacy/0.27/Emulate027.h> #include <ripple/legacy/0.27/Emulate027.h>
#include <beast/unit_test/suite.h> #include <beast/unit_test/suite.h>
#include <boost/format.hpp> #include <boost/format.hpp>
#include "boost/date_time/posix_time/posix_time.hpp"
#include <array> #include <array>
namespace ripple { namespace ripple {
@@ -292,13 +291,6 @@ isMemoOkay (STObject const& st, std::string& reason)
if (!st.isFieldPresent (sfMemos)) if (!st.isFieldPresent (sfMemos))
return true; return true;
// We switch to new semantics on April 15, 2015 at 1:00pm PDT:
static boost::posix_time::ptime const cutoff (
boost::posix_time::time_from_string ("2015-04-15 20:00:00"));
bool const emulate027 =
boost::posix_time::second_clock::universal_time () < cutoff;
auto const& memos = st.getFieldArray (sfMemos); auto const& memos = st.getFieldArray (sfMemos);
// The number 2048 is a preallocation hint, not a hard limit // The number 2048 is a preallocation hint, not a hard limit
@@ -336,9 +328,6 @@ isMemoOkay (STObject const& st, std::string& reason)
return false; return false;
} }
if (emulate027)
continue;
// The raw data is stored as hex-octets, which we want to decode. // The raw data is stored as hex-octets, which we want to decode.
auto data = strUnHex (memoElement.getText ()); auto data = strUnHex (memoElement.getText ());