Skip to content

Commit 2618190

Browse files
committed
Merge branch 'release-next' into release
Conflicts: src/ripple/module/app/paths/cursor/ForwardLiquidity.cpp src/ripple/overlay/tests/peer_info.test.cpp src/ripple/unity/http.h
2 parents 9a0e806 + ed597e5 commit 2618190

File tree

354 files changed

+11095
-6657
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+11095
-6657
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*.o
2020
build
2121
tags
22+
TAGS
2223
bin/rippled
2324
Debug/*.*
2425
Release/*.*

Builds/VisualStudio2013/RippleD.vcxproj

Lines changed: 336 additions & 314 deletions
Large diffs are not rendered by default.

Builds/VisualStudio2013/RippleD.vcxproj.filters

Lines changed: 450 additions & 420 deletions
Large diffs are not rendered by default.

Builds/rpm/rippled.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: rippled
2-
Version: 0.26.1
2+
Version: 0.26.2-alpha-4
33
Release: 1%{?dist}
44
Summary: Ripple peer-to-peer network daemon
55

SConstruct

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,18 @@ def config_env(toolchain, variant, env):
247247
env.ParseConfig('pkg-config --static --cflags --libs openssl')
248248
env.ParseConfig('pkg-config --static --cflags --libs protobuf')
249249

250-
env.Prepend(CCFLAGS=['-Wall'])
250+
env.Prepend(CFLAGS=['-Wall'])
251+
env.Prepend(CXXFLAGS=['-Wall'])
251252

252253
env.Append(CCFLAGS=[
253254
'-Wno-sign-compare',
254255
'-Wno-char-subscripts',
255256
'-Wno-format',
256-
'-Wno-deprecated-register'
257257
])
258258

259+
if toolchain == 'clang':
260+
env.Append(CCFLAGS=['-Wno-redeclared-class-member'])
261+
259262
env.Append(CXXFLAGS=[
260263
'-frtti',
261264
'-std=c++11',
@@ -329,16 +332,23 @@ def config_env(toolchain, variant, env):
329332
if Beast.system.osx:
330333
env.Replace(CC='clang', CXX='clang++', LINK='clang++')
331334
elif 'CLANG_CC' in env and 'CLANG_CXX' in env and 'CLANG_LINK' in env:
332-
env.Replace(CC=env['CLANG_CC'], CXX=env['CLANG_CXX'], LINK=env['CLANG_LINK'])
335+
env.Replace(CC=env['CLANG_CC'],
336+
CXX=env['CLANG_CXX'],
337+
LINK=env['CLANG_LINK'])
333338
# C and C++
334339
# Add '-Wshorten-64-to-32'
335340
env.Append(CCFLAGS=[])
336341
# C++ only
337-
env.Append(CXXFLAGS=['-Wno-mismatched-tags'])
342+
env.Append(CXXFLAGS=[
343+
'-Wno-mismatched-tags',
344+
'-Wno-deprecated-register',
345+
])
338346

339347
elif toolchain == 'gcc':
340348
if 'GNU_CC' in env and 'GNU_CXX' in env and 'GNU_LINK' in env:
341-
env.Replace(CC=env['GNU_CC'], CXX=env['GNU_CXX'], LINK=env['GNU_LINK'])
349+
env.Replace(CC=env['GNU_CC'],
350+
CXX=env['GNU_CXX'],
351+
LINK=env['GNU_LINK'])
342352
# Why is this only for gcc?!
343353
env.Append(CCFLAGS=['-Wno-unused-local-typedefs'])
344354

@@ -542,7 +552,7 @@ for toolchain in all_toolchains:
542552

543553
objects.append(addSource('src/ripple/unity/nodestore.cpp', env, variant_dirs, [
544554
'src/leveldb/include',
545-
#'src/hyperleveldb/include', # hyper
555+
#'src/hyperleveldb/include', # hyper
546556
'src/rocksdb/include',
547557
]))
548558

src/BeastConfig.h

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,23 @@
220220
#define RIPPLE_SINGLE_IO_SERVICE_THREAD 0
221221
#endif
222222

223-
/** Config: RIPPLE_STRUCTURED_OVERLAY
224-
Enables Structured Overlay support (unfinished)
223+
/** Config: RIPPLE_STRUCTURED_OVERLAY_CLIENT
224+
RIPPLE_STRUCTURED_OVERLAY_SERVER
225+
Enables Structured Overlay support for the client or server roles.
226+
This feature is currently in development:
227+
https://ripplelabs.atlassian.net/browse/RIPD-157
225228
*/
226-
#ifndef RIPPLE_STRUCTURED_OVERLAY
227-
#define RIPPLE_STRUCTURED_OVERLAY 0
229+
#ifndef RIPPLE_STRUCTURED_OVERLAY_CLIENT
230+
#define RIPPLE_STRUCTURED_OVERLAY_CLIENT 0
231+
#endif
232+
#ifndef RIPPLE_STRUCTURED_OVERLAY_SERVER
233+
#define RIPPLE_STRUCTURED_OVERLAY_SERVER 1
234+
#endif
235+
236+
/** Config: RIPPLE_ASYNC_RPC_HANDLER
237+
*/
238+
#ifndef RIPPLE_ASYNC_RPC_HANDLER
239+
#define RIPPLE_ASYNC_RPC_HANDLER 1
228240
#endif
229241

230242
/** Config: RIPPLE_ASYNC_RPC_HANDLER

src/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# src
22

3-
Some of these directories come from entire outside repositories
4-
brought in using git-subtree. This means that the source files are
5-
inserted directly into the rippled repository. They can be edited
6-
and committed just as if they were normal files.
3+
Some of these directories come from entire outside repositories brought in
4+
using git-subtree. This means that the source files are inserted directly
5+
into the rippled repository. They can be edited and committed just as if they
6+
were normal files.
77

88
However, if you create a commit that contains files both from a
99
subtree, and from the ripple source tree please use care when designing

src/beast/beast/container/Container.unity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#endif
2323

2424
#include <beast/container/impl/spookyv2.cpp>
25+
#include <beast/container/impl/siphash.cpp>
2526

2627
#include <beast/container/tests/aged_associative_container.test.cpp>
2728
#include <beast/container/tests/buffer_view.test.cpp>

src/beast/beast/container/detail/aged_container_iterator.h

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace detail {
3737
template <
3838
bool is_const,
3939
class Iterator,
40-
class Base =
40+
class Base =
4141
std::iterator <
4242
typename std::iterator_traits <Iterator>::iterator_category,
4343
typename std::conditional <is_const,
@@ -51,20 +51,46 @@ class aged_container_iterator
5151
public:
5252
typedef typename Iterator::value_type::stashed::time_point time_point;
5353

54+
// Could be '= default', but Visual Studio 2013 chokes on it [Aug 2014]
5455
aged_container_iterator ()
5556
{
5657
}
5758

58-
template <class OtherIterator, class OtherBase>
59+
// copy constructor
60+
aged_container_iterator (
61+
aged_container_iterator<is_const, Iterator, Base>
62+
const& other) = default;
63+
64+
// Disable constructing a const_iterator from a non-const_iterator.
65+
// Converting between reverse and non-reverse iterators should be explicit.
66+
template <bool other_is_const, class OtherIterator, class OtherBase,
67+
class = typename std::enable_if <
68+
(other_is_const == false || is_const == true) &&
69+
std::is_same<Iterator, OtherIterator>::value == false>::type>
70+
explicit aged_container_iterator (aged_container_iterator <
71+
other_is_const, OtherIterator, OtherBase> const& other)
72+
: m_iter (other.m_iter)
73+
{
74+
}
75+
76+
// Disable constructing a const_iterator from a non-const_iterator.
77+
template <bool other_is_const, class OtherBase,
78+
class = typename std::enable_if <
79+
other_is_const == false || is_const == true>::type>
5980
aged_container_iterator (aged_container_iterator <
60-
false, OtherIterator, OtherBase> const& other)
81+
other_is_const, Iterator, OtherBase> const& other)
6182
: m_iter (other.m_iter)
6283
{
6384
}
6485

86+
// Disable assigning a const_iterator to a non-const iterator
6587
template <bool other_is_const, class OtherIterator, class OtherBase>
66-
aged_container_iterator& operator= (aged_container_iterator <
67-
other_is_const, OtherIterator, OtherBase> const& other)
88+
auto
89+
operator= (aged_container_iterator <
90+
other_is_const, OtherIterator, OtherBase> const& other) ->
91+
typename std::enable_if <
92+
other_is_const == false || is_const == true,
93+
aged_container_iterator&>::type
6894
{
6995
m_iter = other.m_iter;
7096
return *this;

0 commit comments

Comments
 (0)