mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Compare commits
3 Commits
0.30.0-hf1
...
0.30.0-hf2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad2383bd4b | ||
|
|
5b5a01989c | ||
|
|
c17f7e8b37 |
37
SConstruct
37
SConstruct
@@ -114,7 +114,13 @@ AddOption('--ninja', dest='ninja', action='store_true',
|
|||||||
help='generate ninja build file build.ninja')
|
help='generate ninja build file build.ninja')
|
||||||
|
|
||||||
def parse_time(t):
|
def parse_time(t):
|
||||||
return time.strptime(t, '%a %b %d %H:%M:%S %Z %Y')
|
l = len(t.split())
|
||||||
|
if l==5:
|
||||||
|
return time.strptime(t, '%a %b %d %H:%M:%S %Y')
|
||||||
|
elif l==3:
|
||||||
|
return time.strptime(t, '%d %b %Y')
|
||||||
|
else:
|
||||||
|
return time.strptime(t, '%a %b %d %H:%M:%S %Z %Y')
|
||||||
|
|
||||||
CHECK_PLATFORMS = 'Debian', 'Ubuntu'
|
CHECK_PLATFORMS = 'Debian', 'Ubuntu'
|
||||||
CHECK_COMMAND = 'openssl version -a'
|
CHECK_COMMAND = 'openssl version -a'
|
||||||
@@ -126,17 +132,24 @@ UNITY_BUILD_DIRECTORY = 'src/ripple/unity/'
|
|||||||
USE_CPP_14 = os.getenv('RIPPLED_USE_CPP_14')
|
USE_CPP_14 = os.getenv('RIPPLED_USE_CPP_14')
|
||||||
|
|
||||||
def check_openssl():
|
def check_openssl():
|
||||||
if Beast.system.platform in CHECK_PLATFORMS:
|
if Beast.system.platform not in ['Debian', 'Ubuntu']:
|
||||||
for line in subprocess.check_output(CHECK_COMMAND.split()).splitlines():
|
return
|
||||||
if line.startswith(CHECK_LINE):
|
line = subprocess.check_output('openssl version -b'.split()).strip()
|
||||||
line = line[len(CHECK_LINE):]
|
check_line = 'built on: '
|
||||||
if parse_time(line) < parse_time(BUILD_TIME):
|
if not line.startswith(check_line):
|
||||||
raise Exception(OPENSSL_ERROR % (line, BUILD_TIME))
|
raise Exception("Didn't find any '%s' line in '$ %s'" %
|
||||||
else:
|
(check_line, 'openssl version -b'))
|
||||||
break
|
d = line[len(check_line):]
|
||||||
else:
|
if 'date unspecified' in d:
|
||||||
raise Exception("Didn't find any '%s' line in '$ %s'" %
|
words = subprocess.check_output('openssl version'.split()).split()
|
||||||
(CHECK_LINE, CHECK_COMMAND))
|
if len(words)!=5:
|
||||||
|
raise Exception("Didn't find version date in '$ openssl version'")
|
||||||
|
d = ' '.join(words[-3:])
|
||||||
|
build_time = 'Mon Apr 7 20:33:19 UTC 2014'
|
||||||
|
if parse_time(d) < parse_time(build_time):
|
||||||
|
raise Exception('Your openSSL was built on %s; '
|
||||||
|
'rippled needs a version built on or after %s.'
|
||||||
|
% (line, build_time))
|
||||||
|
|
||||||
|
|
||||||
def set_implicit_cache():
|
def set_implicit_cache():
|
||||||
|
|||||||
@@ -799,6 +799,19 @@ TER PathState::checkNoRipple (
|
|||||||
if (terStatus != tesSUCCESS)
|
if (terStatus != tesSUCCESS)
|
||||||
return terStatus;
|
return terStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!nodes_[i - 1].isAccount() &&
|
||||||
|
nodes_[i].isAccount() &&
|
||||||
|
nodes_[i + 1].isAccount() &&
|
||||||
|
nodes_[i -1].issue_.account != nodes_[i].account_)
|
||||||
|
{ // offer -> account -> account
|
||||||
|
auto const& currencyID = nodes_[i].issue_.currency;
|
||||||
|
terStatus = checkNoRipple (
|
||||||
|
nodes_[i-1].issue_.account, nodes_[i].account_, nodes_[i+1].account_,
|
||||||
|
currencyID);
|
||||||
|
if (terStatus != tesSUCCESS)
|
||||||
|
return terStatus;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return tesSUCCESS;
|
return tesSUCCESS;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ char const* getRawVersionString ()
|
|||||||
//
|
//
|
||||||
// The build version number (edit this for each release)
|
// The build version number (edit this for each release)
|
||||||
//
|
//
|
||||||
"0.30.0-hf1"
|
"0.30.0-hf2"
|
||||||
//
|
//
|
||||||
// Must follow the format described here:
|
// Must follow the format described here:
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user