Commit Graph

  • 37181c341e Changed doc/rippled-example.cfg to specify default for ssl_verify Yana 2014-11-10 17:02:06 -08:00
  • be7e677448 Update integration tests for changes to ripple-lib account request API: wltsmrz 2014-11-13 21:07:17 -08:00
  • b2eeb49a45 Clean up CKey and RippleAddress (RIPD-672) Josh Juran 2014-11-14 00:34:35 -08:00
  • f3ebd508d6 Accept generic arguments in ci_equal Vinnie Falco 2014-11-13 17:22:11 -08:00
  • 9aa040d917 Accept generic arguments in ci_equal Vinnie Falco 2014-11-13 17:22:11 -08:00
  • 5d33ce352e Tidy up split_commas function and use it in Server Vinnie Falco 2014-11-11 08:51:56 -08:00
  • c2043a223b Tidy up split_commas function and use it in Server Vinnie Falco 2014-11-11 08:51:56 -08:00
  • f24e859f17 Construct Server after Overlay and WSDoors: When the ServerHandler is constructed before the Overlay, an incoming connection received after the server's listening ports have been opened but before the Overlay object has been created causes a crash. Vinnie Falco 2014-11-12 05:13:14 -08:00
  • 737b33f9d1 Merge branch 'release' into develop Vinnie Falco 2014-11-14 10:56:45 -08:00
  • 00791d2151 Set version to 0.26.4-sp3 David Schwartz 2014-11-11 16:33:52 -08:00
  • b141598f9b Fix bugs in pathfinding with XRP as the source currency David Schwartz 2014-11-11 15:20:16 -08:00
  • d1618d79b0 Fix pathfinding with multiple issuers for one currency (RIPD-618). Tom Ritchford 2014-10-27 14:45:58 -04:00
  • 00c84dfe5c Clean up Pathfinder. Tom Ritchford 2014-10-09 13:57:22 -04:00
  • 95f31b98a8 Set version to 0.26.4-sp2 Vinnie Falco 2014-11-11 14:22:37 -08:00
  • 10d74ed100 Fix account_lines, account_offers and book_offers result (RIPD-682): The RPC account_lines and account_offers commands respond with the correct ledger info. account_offers, account_lines and book_offers allow admins unlimited size on the limit param. Specifying a negative value on limit clamps to the minimum value allowed. Incorrect types for limit are correctly reported in the result. Miguel Portilla 2014-11-06 16:28:14 -05:00
  • 8a7f612d5b Revert pathfinding changes: * 5e7c527 Revert "Fix account_lines, account_offers and book_offers result (RIPD-682):" * b3417ca Revert "Fix pathfinding with multiple issuers for one currency (RIPD-618)." * 00db7f5 Revert "Clean up Pathfinder." Vinnie Falco 2014-11-11 14:19:31 -08:00
  • c1e070c042 Add missing header needed for boost 1.57 compatibility. Tom Ritchford 2014-11-10 19:28:35 -05:00
  • 0829ee9234 Add missing header needed for boost 1.57 compatibility. Tom Ritchford 2014-11-10 19:28:35 -05:00
  • ade26e2c86 Make Stoppable unit tests manual Nik Bougalis 2014-11-10 16:31:25 -08:00
  • b22e33444b Make Stoppable unit tests manual Nik Bougalis 2014-11-10 16:31:25 -08:00
  • d115a12cbe Remove dead TxQueue code David Schwartz 2014-11-10 14:04:20 -08:00
  • b7b744de94 Remove sole use of beast::MurmurHash Nik Bougalis 2014-11-07 12:41:50 -08:00
  • b668b79341 Remove MurmurHash from Beast Nik Bougalis 2014-11-07 12:43:42 -08:00
  • 68e46e406a Remove MurmurHash from Beast Nik Bougalis 2014-11-07 12:43:42 -08:00
  • a46ae4efec Set version to 0.26.4-sp1 Miguel Portilla 2014-11-10 15:40:50 -05:00
  • 62777a794e Fix account_lines, account_offers and book_offers result (RIPD-682): The RPC account_lines and account_offers commands respond with the correct ledger info. account_offers, account_lines and book_offers allow admins unlimited size on the limit param. Specifying a negative value on limit clamps to the minimum value allowed. Incorrect types for limit are correctly reported in the result. Miguel Portilla 2014-11-06 16:28:14 -05:00
  • 329a969761 Remove unused RPCServer. Tom Ritchford 2014-11-10 14:48:11 -05:00
  • 7bc26c5ea0 Add WrappedSink Vinnie Falco 2014-11-09 17:05:06 -08:00
  • 30170bc394 Add short_read manual unit test: This manual unit test explores the outcomes of shutting down SSL stream connections at various point during a session. Vinnie Falco 2014-11-09 10:52:55 -08:00
  • f193302e15 Add WrappedSink Vinnie Falco 2014-11-09 17:05:06 -08:00
  • 5ece1fa568 Add operator<< for basic_streambuf Vinnie Falco 2014-11-08 19:18:40 -08:00
  • 7c4870d641 Add operator<< for basic_streambuf Vinnie Falco 2014-11-08 19:18:40 -08:00
  • 98ea17f7fc Make ci_equal a function Vinnie Falco 2014-11-06 06:13:11 -08:00
  • 8b84a76d5d Make ci_equal a function Vinnie Falco 2014-11-06 06:13:11 -08:00
  • 8d25cc3c92 Add rfc2616::parse_csv Vinnie Falco 2014-11-06 06:01:14 -08:00
  • a4cd761372 Add rfc2616::parse_csv Vinnie Falco 2014-11-06 06:01:14 -08:00
  • 63d2cfd6ba Fix account_lines, account_offers and book_offers result (RIPD-682): The RPC account_lines and account_offers commands respond with the correct ledger info. account_offers, account_lines and book_offers allow admins unlimited size on the limit param. Specifying a negative value on limit clamps to the minimum value allowed. Incorrect types for limit are correctly reported in the result. Miguel Portilla 2014-11-06 16:28:14 -05:00
  • bb44bdd047 Fix pathfinding with multiple issuers for one currency (RIPD-618). Tom Ritchford 2014-10-27 14:45:58 -04:00
  • 6904e66384 Clean up Pathfinder. Tom Ritchford 2014-10-09 13:57:22 -04:00
  • 15c1055ff4 Fix weak_fn unit test. Vinnie Falco 2014-11-09 20:27:05 -08:00
  • fbffe2367e Fix weak_fn unit test. Vinnie Falco 2014-11-09 20:27:05 -08:00
  • e442a2846d Overlay improvements and bug fixes: PeerImp::detach had a default argument graceful=true which did not correctly close the socket and cause the Overlay to often hang on exit. The logging for Overlay and Peers has been reworked. All the socket activity is logged to Peers while protocol activity goes to Protocol. Every log line is prefixed by a small integer ID unique to the connection. * Removed graceful PeerImp::detach option * Peer and Protocol log message handle respective types of logging * Log messages prefixed with peer unique integer * Prevent call to timer ancel from throwing an exception Vinnie Falco 2014-11-08 06:30:33 -08:00
  • f6985586ea Better logging when opening Server ports. Vinnie Falco 2014-11-08 07:33:41 -08:00
  • 2bae5b0959 Throw if rippled.cfg is missing a [server] section Vinnie Falco 2014-11-07 11:48:31 -08:00
  • c930151a95 Remove obsolete get_pointer Vinnie Falco 2014-11-08 10:22:30 -08:00
  • 1e58809fcc Remove obsolete get_pointer Vinnie Falco 2014-11-08 10:22:30 -08:00
  • 3d7c6f831c Add weak_fn Vinnie Falco 2014-11-08 09:40:17 -08:00
  • 6b1d213cc2 Add weak_fn Vinnie Falco 2014-11-08 09:40:17 -08:00
  • ef57b3954c Add missing include needed for std::bad_cast in LexicalCast.h David Schwartz 2014-11-07 15:18:01 -08:00
  • 42bec13a83 Add missing include needed for std::bad_cast in LexicalCast.h David Schwartz 2014-11-07 15:18:01 -08:00
  • 4415a179b3 Update freeze test for moved TxFlags.h Vinnie Falco 2014-11-07 14:12:43 -08:00
  • 878070084e Refactor the structure of source files: * New src/ripple/crypto and src/ripple/protocol directories * Merged src/ripple/common into src/ripple/basics * Move resource/api files up a level * Add headers for "include what you use" * Normalized include guards * Renamed to JsonFields.h * Remove obsolete files * Remove net.h unity header * Remove resource.h unity header * Removed some deprecated unity includes Vinnie Falco 2014-11-07 07:05:38 -08:00
  • 5d42604efd Refactor the structure of source files: * New src/ripple/crypto and src/ripple/protocol directories * Merged src/ripple/common into src/ripple/basics * Move resource/api files up a level * Add headers for "include what you use" * Normalized include guards * Renamed to JsonFields.h * Remove obsolete files * Remove net.h unity header * Remove resource.h unity header * Removed some deprecated unity includes Vinnie Falco 2014-11-07 07:05:38 -08:00
  • ef5adc507a Add missing includes. Vinnie Falco 2014-11-07 06:46:53 -08:00
  • b134b7d3f6 Add missing includes. Vinnie Falco 2014-11-07 06:46:53 -08:00
  • 788219fe05 Adjust SSL context generation for Server: The creation of self-signed certificates slows down the command line client when launched repeatedly during unit test. * Contexts are no longer generated for the command line client * A port with no secure protocols generates an empty context Vinnie Falco 2014-11-07 04:43:54 -08:00
  • 9a7f66cfe9 Fix compilation errors in RPC/RipplePathFind.cpp Tom Ritchford 2014-11-06 21:57:09 -05:00
  • daa4d16e61 Remove unused isXRP(Issue) function. Tom Ritchford 2014-10-29 14:32:14 -04:00
  • cf05f87795 Fix pathfinding with multiple issuers for one currency (RIPD-618). Tom Ritchford 2014-10-27 14:45:58 -04:00
  • c2f2f83b7c Clean up Pathfinder. Tom Ritchford 2014-10-09 13:57:22 -04:00
  • b30b2a523f Fix public member names of RPC::Context. Tom Ritchford 2014-11-03 14:41:44 -05:00
  • 150a3810a8 Update npm test rippled.cfg to use [server]: The test now generates a configuration file with the new configuration sections define by the Universal Port feature. Nicholas Dudfield 2014-11-04 08:07:18 +07:00
  • ac0eaa912b Universal Port (RIPD-160): This changes the behavior and configuration specification of the listening ports that rippled uses to accept incoming connections for the supported protocols: peer (Peer Protocol), http (JSON-RPC over HTTP), https (JSON-RPC) over HTTPS, ws (Websockets Clients), and wss (Secure Websockets Clients). Each listening port is now capable of handshaking in multiple protocols specified in the configuration file (subject to some restrictions). Each port can be configured to provide its own SSL certificate, or to use a self-signed certificate. Ports can be configured to share settings, this allows multiple ports to use the same certificate or values. The list of ports is dynamic, administrators can open as few or as many ports as they like. Authentication settings such as user/password or admin user/admin password (for administrative commands on RPC or Websockets interfaces) can also be specified per-port. Vinnie Falco 2014-10-31 13:32:28 -07:00
  • 05a04aa801 Set version to 0.26.4 Vinnie Falco 2014-11-03 16:53:37 -08:00
  • ea7013a34d Improved beast::http::message: * Add headers::erase * Set http::message version with std::pair * Use std::pair for headers::value_type Vinnie Falco 2014-10-30 17:16:54 -07:00
  • e37d4043f6 Add missing includes to make headers compile separately Vinnie Falco 2014-11-01 12:00:12 -07:00
  • d073425b44 Improved beast::http::message: * Add headers::erase * Set http::message version with std::pair * Use std::pair for headers::value_type Vinnie Falco 2014-10-30 17:16:54 -07:00
  • 825b18cf71 Add bin/stop-test.js shutdown testing script: This script launches rippled repeatedly and then issues a stop command after a variable amount of time. This is to test the shutdown of the application and catch errors. Nicholas Dudfield 2014-11-03 14:07:29 +07:00
  • 549ad3204f Fix race conditions closing HTTP I/O objects: This fixes a case where stop can sometimes skip calling close on some I/O objects or crash in a rare circumstance where a connection is in the process of being torn down at the exact time the server is stopped. When the acceptor receives errors, it logs the error and continues listening instead of stopping. Vinnie Falco 2014-11-02 17:51:20 -08:00
  • 35f9499b67 Fix Overlay stop on exit: The stop sequence for Overlay had a race condition where autoconnect could be called after close_all, resulting in a hang on exit. This resolves the problem by putting the close and timer operations on a strand: * Rename some Overlay members * Put close on strand and tidy up members * Use completion handler instead of coroutine for timer * Use App io_service in PeerFinder Vinnie Falco 2014-11-02 10:00:36 -08:00
  • db82c35c17 Remove spurious assert in ResolverAsioImpl Vinnie Falco 2014-11-03 07:09:40 -08:00
  • 73c74f753c Change to the Application io_service: * Simplified the implementation and removed class IoServicePool * The io_service outlives the components of the Application Vinnie Falco 2014-11-02 12:32:41 -08:00
  • a38fb2a5dc Clear the acquiring ledger when shutting down NetworkOPs: This solves a circular destruction problem on exit. JoelKatz 2014-11-03 13:54:11 -08:00
  • 38e99e01f9 Improve nodestore benchmarking: * Use more succinct while loops on NodeFactory. * Better formatting of multiple test results. * Updated benchmarks. * Use simpler and faster RNG to generate test data. Donovan Hide 2014-11-02 00:54:26 +00:00
  • a1f46e84b8 Add new RocksDBQuickFactory for benchmarking: This new factory is intended for benchmarking against the existing RocksDBFactory and has the following differences. * Does not use BatchWriter * Disables WAL for writes to memtable * Uses a hash index in blocks * Uses RocksDB OptimizeFor… functions See Benchmarks.md for further discussion of some of the issues raised by investigation of RocksDB performance. Donovan Hide 2014-10-31 19:23:26 +00:00
  • 6540804571 Add repeatable NodeStore timing benchmark: The timing test is changed to overcome possible file buffer cache effects by creating different read access patterns. The unittest-arg command line arguments allow running the benchmarks against any of the available backends and altering the parameters passed in the same format as rippled.cfg. The num_objects parameter permits variation of the number of key/values inserted. The data is random but matches reasonably well the values that rippled might generate. Donovan Hide 2014-10-31 18:47:29 +00:00
  • eb64a4387d Refactor Stoppable: The Stoppable interface aids in the enforcement of invariants needed to successful start and stop a multi-threaded application composed of classes that depend on each other in complex ways. * Test written to confirm the current behavior. * Comments updated to reflect the current behavior. * Public API reduced to what is currently in use. * Protected data members made private. * volatile bool members changed to std::atomic<bool>. * std::atomic<int> members changed to std::atomic<bool>. * Name storage uses std::string Howard Hinnant 2014-10-29 14:23:41 -04:00
  • ffe6707595 Refactor Stoppable: The Stoppable interface aids in the enforcement of invariants needed to successful start and stop a multi-threaded application composed of classes that depend on each other in complex ways. * Test written to confirm the current behavior. * Comments updated to reflect the current behavior. * Public API reduced to what is currently in use. * Protected data members made private. * volatile bool members changed to std::atomic<bool>. * std::atomic<int> members changed to std::atomic<bool>. * Name storage uses std::string Howard Hinnant 2014-10-29 14:23:41 -04:00
  • 68fe1a7c8f New class TempDirectory in UnitTestUtilities. Tom Ritchford 2014-10-28 17:01:55 -04:00
  • 9b21740c9f Delete temporary directories at the end of tests (RIPD-460). Tom Ritchford 2014-10-28 17:21:12 -04:00
  • bd12e2ab95 New class TempDirectory in UnitTestUtilities. Tom Ritchford 2014-10-28 17:01:55 -04:00
  • bffb5ef8b4 Avoid zero initialization of Blob: This seemed to improve the performance of the copy, although there did seem to be some byte by byte copying still present. Further investigation recommended. Donovan Hide 2014-10-31 18:38:04 +00:00
  • e4c9822d78 Enable processor-specific optimizations when available: The SConstruct is modified to enable processor specific optimizations on clang and gcc toolchains. This improves the performance of RocksDB's CRC function. It might also enable other used libraries that are in the codebase now or in the future to apply cpu-specific optimisations. The mtune option ensures that a binary compiled on one machine will function on another, Donovan Hide 2014-10-31 18:33:16 +00:00
  • 73187d8832 Remove obsolete multitls and proxy websocket features Vinnie Falco 2014-10-31 15:13:55 -07:00
  • 8101154d5e Remove obsolete websocket PROXY port Vinnie Falco 2014-10-31 15:08:38 -07:00
  • c02937fd6f Remove obsolete sections from rippled-example.cfg: * peer_port_proxy is obsolete since the MultiSocket was removed. * peer_ssl_cipher_list has no effect, SSL ciphers are hard coded for security. Vinnie Falco 2014-10-31 15:08:26 -07:00
  • 3430be4075 Add PeerFinder onRedirects function Vinnie Falco 2014-10-30 18:49:54 -07:00
  • 320897bad6 Add streambuf to_string function Vinnie Falco 2014-10-30 18:50:24 -07:00
  • 3f2b6f771f Add streambuf to_string function Vinnie Falco 2014-10-30 18:50:24 -07:00
  • 6e39b49cc2 Add Json::stream to write Value to a Streambuf Vinnie Falco 2014-10-30 07:25:13 -07:00
  • 71c34ed4e0 Remove unused ErrorReply function Vinnie Falco 2014-10-31 12:43:12 -07:00
  • 477178675c Fix parseIniFile for duplicate sections Vinnie Falco 2014-10-31 13:18:22 -07:00
  • dbdf68b248 Refactor HTTP::Server to support Universal Port: These changes are necessary to support the Universal port feature. Synopsis: Vinnie Falco 2014-10-15 00:41:10 -07:00
  • 2fd139b307 Refactor Overlay and add [overlay] config section (experimental): These changes prepare Overlay for the Universal Port and Hub and Spoke features. Vinnie Falco 2014-09-23 17:30:50 -07:00
  • 0b692080cd Add shared_ptr<boost::asio::ssl::context> to ssl_bundle: This gives the ssl_bundle shared ownership of the underlying ssl context so that ownership of the bundle may be transferred to other classes without introduce lifetime issues. Vinnie Falco 2014-10-26 08:24:55 -07:00
  • a6c2657062 Add shared_ptr<boost::asio::ssl::context> to ssl_bundle: This gives the ssl_bundle shared ownership of the underlying ssl context so that ownership of the bundle may be transferred to other classes without introduce lifetime issues. Vinnie Falco 2014-10-26 08:24:55 -07:00
  • eaa021c2e2 Make streambuf buffers_type iterators default constructible Vinnie Falco 2014-10-30 11:52:09 -07:00
  • 78a0bc0e2c Make streambuf buffers_type iterators default constructible Vinnie Falco 2014-10-30 11:52:09 -07:00
  • d352a744a5 Enable std::array overloads for boost::asio on clang: * Remove Boost config option from beast config. * Define from compiler, or let Boost figure out itself. Edward Hennis 2014-10-30 12:36:13 -04:00
  • d7116d6867 Enable std::array overloads for boost::asio on clang: * Remove Boost config option from beast config. * Define from compiler, or let Boost figure out itself. Edward Hennis 2014-10-30 12:36:13 -04:00