mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Set TX processing change date to 2015-05-12 13:00:00PDT
This commit is contained in:
committed by
Vinnie Falco
parent
15d68649d5
commit
bc85a8b24f
@@ -34,8 +34,8 @@ emulate027 (Ledger::ref ledger)
|
||||
return false;
|
||||
|
||||
// The server also uses 0.28 semantics for all ledgers whose parent
|
||||
// closed after 2015-04-28 13:00:00 PDT.
|
||||
static std::uint32_t const legacy_cutoff = 483566400;
|
||||
// closed after 2015-05-12 13:00:00 PDT.
|
||||
static std::uint32_t const legacy_cutoff = 484776000;
|
||||
|
||||
if (ledger->getParentCloseTimeNC () > legacy_cutoff)
|
||||
return false;
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <ripple/legacy/0.27/Emulate027.h>
|
||||
#include <beast/unit_test/suite.h>
|
||||
#include <boost/format.hpp>
|
||||
#include "boost/date_time/posix_time/posix_time.hpp"
|
||||
#include <array>
|
||||
|
||||
namespace ripple {
|
||||
@@ -292,13 +291,6 @@ isMemoOkay (STObject const& st, std::string& reason)
|
||||
if (!st.isFieldPresent (sfMemos))
|
||||
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);
|
||||
|
||||
// The number 2048 is a preallocation hint, not a hard limit
|
||||
@@ -336,9 +328,6 @@ isMemoOkay (STObject const& st, std::string& reason)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (emulate027)
|
||||
continue;
|
||||
|
||||
// The raw data is stored as hex-octets, which we want to decode.
|
||||
auto data = strUnHex (memoElement.getText ());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user