Commit Graph

  • ebcedcbe93 Fix Visual Studio 2013 build Vinnie Falco 2014-04-15 07:37:04 -07:00
  • e3995ac776 Updated example cfg for new validator public keys. The Doctor 2014-04-11 13:48:06 -07:00
  • a4ef993282 New Zero struct implements "compare with zero." * Zero lets classes efficiently compare with 0, so you can use constructors like x < zero or y != zero. * New BEAST_CONSTEXPR to handle Windows/C++11 differences regarding the constexpr specifier. Tom Swirly 2014-04-10 19:14:52 -04:00
  • 64ee0d07d0 New Zero struct implements "compare with zero." * Zero lets classes efficiently compare with 0, so you can use constructors like x < zero or y != zero. * New BEAST_CONSTEXPR to handle Windows/C++11 differences regarding the constexpr specifier. Tom Swirly 2014-04-10 19:14:52 -04:00
  • 6b0cec1189 Improvements to scons build for beast. Tom Ritchford 2014-04-09 15:33:34 -04:00
  • 524f41177c Improvements to scons build for beast. Tom Ritchford 2014-04-09 15:33:34 -04:00
  • 04ea9ff74c New classes for processing offers in order books: * BookTip provides consume-and-step offer traversal * OfferStream applies offer business rules and presents offers to callers * Taker class manages state for the active party during order processing * Offer class wraps book offers for presentation Vinnie Falco 2014-04-02 14:26:38 -07:00
  • 53bf5e7f36 New classes and types for handling asset amounts: * Quality opaque type for order book quality * Amount replacement for STAmount * Amounts, in/out amount pair for offers * 'core' namespace with type aliases for Ripple primitives. Vinnie Falco 2014-04-08 17:45:01 -07:00
  • bd60a93cd6 Fix conversion of binary data to hexadecimal strings in some cases. Nik Bougalis 2014-04-07 14:49:42 -07:00
  • 8a608b5829 Configuration file improvements: * Set default node_db to RocksDB from HyperlevelDB, to match gateway appliances and Ripple Labs server configurations. * Set some rpc_startup options to reduce logging and save disk space. * More sensible documentation regarding WebSocket SSL directives The Doctor 2014-04-07 11:50:16 -07:00
  • 151388692a Add bg_threads and high_threads RocksDB tunables David Schwartz 2014-04-01 09:28:40 -07:00
  • bec876d062 Remove unused legacy code Nik Bougalis 2014-04-04 16:46:59 -07:00
  • 4a3176e3a0 Force BOOST_ASIO_HAS_STD_ARRAY to 1 for the clang / gcc libstdc++ 4.8 combination Howard Hinnant 2014-04-03 14:58:28 -04:00
  • 81238e21a5 Force BOOST_ASIO_HAS_STD_ARRAY to 1 for the clang / gcc libstdc++ 4.8 combination Howard Hinnant 2014-04-03 14:58:28 -04:00
  • fd9206584f Sub in std::array for boost::array and beast::FixedArray Howard Hinnant 2014-04-03 14:02:26 -04:00
  • cc354ee9f2 Sub in std::array for boost::array and beast::FixedArray Howard Hinnant 2014-04-03 14:02:26 -04:00
  • 90842073bf Must set flags before signing validation. JoelKatz 2014-04-02 15:02:02 -07:00
  • a5488c3727 Autobridging hooks and cleanups: Nik Bougalis 2014-03-26 12:25:39 -07:00
  • 166b8963bb Don't create peer doors in standalone mode Nik Bougalis 2014-03-26 17:36:33 -07:00
  • c51644f1b9 More robustly validate signature inputs, closes #313 Nik Bougalis 2014-03-26 12:11:28 +07:00
  • f124a34730 Fix assert invariant in Peers::close_all Vinnie Falco 2014-04-01 10:24:55 -07:00
  • 2ab7cfbf30 New hash_append robust container hash function framework: * is_contiguous_hashable trait identifies optimizable types * hash_append() function overloads for basic types: - scalars, floats - array, C array - pair, tuple - boost array and tuple (if configured) * Provided Spooky hash wrapper for use with hash_append * Use hash_append in hardened_hash and other places * New Utility meta functions for working with variadics: - static_and - static_sum * Added type_name utility function for diagnostics * hash_metrics suite of functions to evalulate hash functions * Test suites to measure hash function performance * Various fixes Howard Hinnant 2014-03-30 23:17:29 -07:00
  • 30e882196f New hash_append robust container hash function framework: * is_contiguous_hashable trait identifies optimizable types * hash_append() function overloads for basic types: - scalars, floats - array, C array - pair, tuple - boost array and tuple (if configured) * Provided Spooky hash wrapper for use with hash_append * Use hash_append in hardened_hash and other places * New Utility meta functions for working with variadics: - static_and - static_sum * Added type_name utility function for diagnostics * hash_metrics suite of functions to evalulate hash functions * Test suites to measure hash function performance * Various fixes Howard Hinnant 2014-03-30 23:17:29 -07:00
  • 14830c7cb4 Avoid redundant unlock David Schwartz 2014-03-31 09:09:17 -07:00
  • 5a21269da4 mRecentPositions must be protected by the master lock. JoelKatz 2014-03-28 13:45:15 -07:00
  • cc5466d450 Reject expired transactions immediately JoelKatz 2014-03-28 10:33:53 -07:00
  • a068bff9c1 Set fully-canonical flag in transactions and validations. JoelKatz 2014-03-28 09:34:22 -07:00
  • 1e54472a1d Clean local transaction checks. Check account field size David Schwartz 2014-03-25 14:52:29 -07:00
  • be9e18ddb8 Track and re-appply LocalTransactions as needed David Schwartz 2014-03-24 12:31:56 -07:00
  • 5d1aec6280 Charge for pathfinding updates. JoelKatz 2014-03-17 19:40:35 -07:00
  • 0442b3a683 Change resource costs. JoelKatz 2014-03-17 19:32:13 -07:00
  • 6b467e7e59 Move hardened_hash to container/ Vinnie Falco 2014-03-25 12:18:36 -07:00
  • bbc8a8fdc4 Move hardened_hash to container/ Vinnie Falco 2014-03-25 12:18:36 -07:00
  • d64f5a387c Add beast SConstruct and .travis.yml Vinnie Falco 2014-03-24 09:26:55 -07:00
  • 428872731a Add beast SConstruct and .travis.yml Vinnie Falco 2014-03-24 09:26:55 -07:00
  • 015d91b50d OfferCreateTransactor cleanups: - Use std containers instead of their boost counterparts - Reduce transactor console verbosity - Remove unneeded parameter shadowing member variable - Remove BOOST_FOREACH - Add comments - Small cleanups Nik Bougalis 2014-03-19 11:03:11 -07:00
  • cc6cd0bb8f Transactor journal support and small cleanups Nik Bougalis 2014-03-17 13:33:11 -07:00
  • 436061be22 Transactor journal support and small cleanups Nik Bougalis 2014-03-17 13:33:11 -07:00
  • d447a1db39 Refactor ECDSA canonical checks: * Add signature canonicalization unit tests * Tidy up into new classes and functions Nik Bougalis 2014-03-12 13:37:58 -07:00
  • a4a7dd4314 Fedora RPM support: Luke Cyca 2014-03-20 16:19:23 -07:00
  • 4886772ca3 Add Arch Linux PKGBUILD: Roberto Catini 2014-03-19 16:59:05 +01:00
  • 0f19efac2d Example configuration file update: - Fix config database default location. - Add SSL/TLS for WebSockets config. Currently commented out. The Doctor 2014-03-19 11:22:15 -07:00
  • 3fbff6e620 beast cleanup and tidying: * Replace custom types with C++11 <cstdint> types * Fix sqlite integer intos and uses * Fix String implicit integer constructors * Escape the enclosing namespace in sqdb * Replace contract checks with assert * Make many header files compile independently * Remove the dependence on beast_core.h in many places * Remove unused or obsolete classes and functions * Remove unused or obsolete macros * Remove unused network functions and files * Remove unused or obsolete classes: - ChildProcess - HighResolutionTimer - InterProcessLock - Throw - TrackedMutex - UntrackedMutex - XmlDocument - XmlElement Vinnie Falco 2014-03-22 09:43:11 -07:00
  • b2d97703c6 beast cleanup and tidying: * Replace custom types with C++11 <cstdint> types * Fix sqlite integer intos and uses * Fix String implicit integer constructors * Escape the enclosing namespace in sqdb * Replace contract checks with assert * Make many header files compile independently * Remove the dependence on beast_core.h in many places * Remove unused or obsolete classes and functions * Remove unused or obsolete macros * Remove unused network functions and files * Remove unused or obsolete classes: - ChildProcess - HighResolutionTimer - InterProcessLock - Throw - TrackedMutex - UntrackedMutex - XmlDocument - XmlElement Vinnie Falco 2014-03-22 09:43:11 -07:00
  • 5eb0aa2765 Add hardened_hash, prevents adversarial inputs Vinnie Falco 2014-03-22 12:11:44 -07:00
  • 936f45c7ec Add hardened_hash, prevents adversarial inputs Vinnie Falco 2014-03-22 12:11:44 -07:00
  • f63cf33118 New unit_test framework: * Header-only! * No external dependencies or other beast modules * Compilation options allow for: - Stand-alone application to run a single test suite - Stand-alone application to run a set of test suites - Global suite of tests inline with the host application - Disable test suite generation completely * Existing tests reworked to use the new classes Vinnie Falco 2014-03-20 17:25:39 -07:00
  • a865149c65 New unit_test framework: * Header-only! * No external dependencies or other beast modules * Compilation options allow for: - Stand-alone application to run a single test suite - Stand-alone application to run a set of test suites - Global suite of tests inline with the host application - Disable test suite generation completely * Existing tests reworked to use the new classes Vinnie Falco 2014-03-20 17:25:39 -07:00
  • 0bb6171a85 beast.streams improvements: * New basic_std_ostream wraps any std::stream. * New debug_ostream redirects output to debugger if attached. Vinnie Falco 2014-03-20 16:50:25 -07:00
  • 547019bd1b beast.streams improvements: * New basic_std_ostream wraps any std::stream. * New debug_ostream redirects output to debugger if attached. Vinnie Falco 2014-03-20 16:50:25 -07:00
  • e92dd73169 Add const_container Vinnie Falco 2014-03-20 08:23:44 -07:00
  • 953805d97e Add const_container Vinnie Falco 2014-03-20 08:23:44 -07:00
  • 2d490f6e6a beast cleaning and tidying: * Consolidate small modules into one * Remove Android-specific platform support * Remove Chrono.h from beast_core.h * Removed files: - TypeTraits.h - Utility.h - Net.h - Asio.h * Remove zlib support: - Remove inline zlib library sources - Remove GZIPCompressorOutputStream - Remove GZIPDecompressorInputStream * Remove obsolete or unused classes: - AbstractObject - BigInteger - BufferedInputStream - CacheLine - CPUMeter - DatagramSocket - DynamicObject - FileLogger - FPUFlags - Identifier - JSON - LocalisedStrings - MACAddress - MemoryAlignment - MemoryInputStream - MemoryMappedFile - NamedValueSet - OptionalScopedPointer - PerformanceCounter - PropertySet - ScopedTimeInterval - SparseSet - SpinDelay - StreamingSocket - StringPool - SubregionStream - Uuid - Variant Vinnie Falco 2014-03-20 18:08:54 -07:00
  • e344cb3d62 beast cleaning and tidying: * Consolidate small modules into one * Remove Android-specific platform support * Remove Chrono.h from beast_core.h * Removed files: - TypeTraits.h - Utility.h - Net.h - Asio.h * Remove zlib support: - Remove inline zlib library sources - Remove GZIPCompressorOutputStream - Remove GZIPDecompressorInputStream * Remove obsolete or unused classes: - AbstractObject - BigInteger - BufferedInputStream - CacheLine - CPUMeter - DatagramSocket - DynamicObject - FileLogger - FPUFlags - Identifier - JSON - LocalisedStrings - MACAddress - MemoryAlignment - MemoryInputStream - MemoryMappedFile - NamedValueSet - OptionalScopedPointer - PerformanceCounter - PropertySet - ScopedTimeInterval - SparseSet - SpinDelay - StreamingSocket - StringPool - SubregionStream - Uuid - Variant Vinnie Falco 2014-03-20 18:08:54 -07:00
  • 761affacc3 Update to SQLite 3.8.4.1 Vinnie Falco 2014-03-20 19:17:25 -07:00
  • 693a5927a9 Update to SQLite 3.8.4.1 Vinnie Falco 2014-03-20 19:17:25 -07:00
  • 979c834ee0 Fix and add tests for empty_base_optimization. Howard Hinnant 2014-03-20 14:39:01 -04:00
  • 07e2f87079 Fix and add tests for empty_base_optimization. Howard Hinnant 2014-03-20 14:39:01 -04:00
  • aff0ec18b0 Fix error code assignment in raw_parser Vinnie Falco 2014-03-20 10:43:01 -07:00
  • 9b152d8098 Fix error code assignment in raw_parser Vinnie Falco 2014-03-20 10:43:01 -07:00
  • d32b91e0de Add abstract streams module: * New basic_abstract_ostream template for generic output * New abstract_ostream, common type alias * basic_scoped_ostream, RAII output to abstract streams Vinnie Falco 2014-03-01 09:56:32 -08:00
  • 8daecb5430 Add abstract streams module: * New basic_abstract_ostream template for generic output * New abstract_ostream, common type alias * basic_scoped_ostream, RAII output to abstract streams Vinnie Falco 2014-03-01 09:56:32 -08:00
  • 8b659a6d32 Add workaround/noexcept.h for visual studio Vinnie Falco 2014-03-18 16:53:17 -07:00
  • f1462de729 Add workaround/noexcept.h for visual studio Vinnie Falco 2014-03-18 16:53:17 -07:00
  • 18486169b3 Change to the treatment of BeastConfig.h * No longer requires its own compiler include path * Includes use relative paths to locate the file * Client applications include the file themselves * Inclusion of BeastConfig.h can be controlled via preprocessor directive Vinnie Falco 2014-03-17 18:20:31 -07:00
  • 3cb3e5273f Change to the treatment of BeastConfig.h * No longer requires its own compiler include path * Includes use relative paths to locate the file * Client applications include the file themselves * Inclusion of BeastConfig.h can be controlled via preprocessor directive Vinnie Falco 2014-03-17 18:20:31 -07:00
  • d580e7c694 General tidy and refactoring: * Use nullptr (C++11) instead of NULL. * Put each file into its own namespace declaration. * Remove "using namespace" directives and add scope qualifiers. * Control when beast's implementation of std::equal (C++14) is used. * Tidy up some const declarations. Howard Hinnant 2014-03-07 18:54:11 -05:00
  • cad50c68a8 General tidy and refactoring: * Use nullptr (C++11) instead of NULL. * Put each file into its own namespace declaration. * Remove "using namespace" directives and add scope qualifiers. * Control when beast's implementation of std::equal (C++14) is used. * Tidy up some const declarations. Howard Hinnant 2014-03-07 18:54:11 -05:00
  • 78ec5ccdbc Restructure joyent message parser (from Node.js): * New http::raw_parser wrapper * Convert parser errors to error_code * Enumeration and strings for parsed HTTP method * Move parser engine into joyent namespace * Rename includes to be distinct Vinnie Falco 2014-03-19 09:24:51 -07:00
  • c581ffb8a4 Restructure joyent message parser (from Node.js): * New http::raw_parser wrapper * Convert parser errors to error_code * Enumeration and strings for parsed HTTP method * Move parser engine into joyent namespace * Rename includes to be distinct Vinnie Falco 2014-03-19 09:24:51 -07:00
  • d4a5c0353d beast, beast::asio improvements and fixes: * New maybe_const_t alias for maybe_const * New asio::enable_wait_for_async for safe cleanup * New asio::memory_buffer, a managed boost::asio compatible buffer * shared_handler improvements: - Can be 'empty' (no stored handler). - Default constructible as 'empty'. - Safe evaluation in bool contexts, false==empty * Fix is_call_possible metafunction: - Works on empty argument lists - Works with reference types * Replace SafeBool idiom with C++11 explicit operator bool * Move IPAddress function definitions to the header * Move cyclic_iterator to container/ * Remove unused BufferType * Remove obsolete classes: - NamedPipe - ReadWriteLock - ScopedReadLock - ScopedWriteLock - LockGuard Vinnie Falco 2014-03-16 20:32:14 -07:00
  • 556778dbdb beast, beast::asio improvements and fixes: * New maybe_const_t alias for maybe_const * New asio::enable_wait_for_async for safe cleanup * New asio::memory_buffer, a managed boost::asio compatible buffer * shared_handler improvements: - Can be 'empty' (no stored handler). - Default constructible as 'empty'. - Safe evaluation in bool contexts, false==empty * Fix is_call_possible metafunction: - Works on empty argument lists - Works with reference types * Replace SafeBool idiom with C++11 explicit operator bool * Move IPAddress function definitions to the header * Move cyclic_iterator to container/ * Remove unused BufferType * Remove obsolete classes: - NamedPipe - ReadWriteLock - ScopedReadLock - ScopedWriteLock - LockGuard Vinnie Falco 2014-03-16 20:32:14 -07:00
  • 816fab000d Fix SConstruct compiler arguments Vinnie Falco 2014-03-17 14:49:31 -07:00
  • 66d1dd6f81 Build system improvements: Nik Bougalis 2014-03-14 15:33:31 -07:00
  • 3eae68fc34 Remove obsolete support scripts Vinnie Falco 2014-03-15 06:07:43 -07:00
  • 8545aee4c7 Better diagnostics for SSL certificate failures Vinnie Falco 2014-03-14 16:20:34 -07:00
  • 29a4f61551 Set version to 0.23.0 Vinnie Falco 2014-03-14 13:01:23 -07:00
  • 6546c30e17 Refactor beast::asio: * New tools for completion handlers: - wrap_handler provides composed io_service execution guarantees. - bind_handler rebinds arguments to handlers. - shared_handler type-erases any completion handler. - buffer_sequence type-erases templated BufferSequences - abstract_socket replaces Socket - socket_wrapper replaces SocketWrapper - beast::asio placeholders to work with std::bind Vinnie Falco 2014-03-07 20:06:12 -08:00
  • c2fd1215f5 Refactor beast::asio: * New tools for completion handlers: - wrap_handler provides composed io_service execution guarantees. - bind_handler rebinds arguments to handlers. - shared_handler type-erases any completion handler. - buffer_sequence type-erases templated BufferSequences - abstract_socket replaces Socket - socket_wrapper replaces SocketWrapper - beast::asio placeholders to work with std::bind Vinnie Falco 2014-03-07 20:06:12 -08:00
  • 5478c540cb Add std::integer_sequence C++14 compatibility Vinnie Falco 2014-03-10 11:55:53 -04:00
  • e3c1375f36 Add std::integer_sequence C++14 compatibility Vinnie Falco 2014-03-10 11:55:53 -04:00
  • 4e357601ec Move MultiSocket, RippleSSLContext to common module Vinnie Falco 2014-03-02 08:26:30 -08:00
  • 3674b01634 Add ripple::byte_view, ripple::const_byte_view Vinnie Falco 2014-03-12 01:04:47 -07:00
  • b5d81f4f92 Add beast::buffer_view Vinnie Falco 2014-03-11 23:24:34 -07:00
  • f66aee4e7f Add beast::buffer_view Vinnie Falco 2014-03-11 23:24:34 -07:00
  • 2a99a8350f Add C++11 noexcept compatibility for VS2013 Vinnie Falco 2014-03-12 15:36:23 -07:00
  • b2f06dbe3c Add C++11 noexcept compatibility for VS2013 Vinnie Falco 2014-03-12 15:36:23 -07:00
  • b78076670e Fix typos: tecMASTER_DISABLED, tecNO_REGULAR_KEY sublimator 2014-03-14 11:11:24 +07:00
  • a08a0703b6 Remove Jenkins CI build status badge sublimator 2014-03-01 13:23:56 +07:00
  • f80561e6aa Travis: disable gdb thread event logging sublimator 2014-03-12 22:54:56 +07:00
  • 028935a254 Handle unexpected relative paths from __FILE__ Fixes comref#RIPD-133 JoelKatz 2014-03-13 16:48:33 -07:00
  • f5765b71f2 Handle unexpected relative paths from __FILE__ Fixes comref#RIPD-133 JoelKatz 2014-03-13 16:48:33 -07:00
  • 6a6be847c0 Set version to 0.23.0-rc1 Vinnie Falco 2014-03-12 19:05:08 -07:00
  • 4e26108a06 Protect callers of MultiSocket::remote_endpoint from exceptions Nik Bougalis 2014-03-12 13:50:43 -07:00
  • c517d261bb Return a sensible error for unknown inner JSON fields JoelKatz 2014-03-12 00:45:43 -07:00
  • 5522a23670 Don't relay old proposals. JoelKatz 2014-03-11 22:18:13 -07:00
  • 64345f90a8 Allow setting LedgerConsensus to TRACE JoelKatz 2014-03-11 22:01:36 -07:00
  • 879c0d6b78 Be less promiscuous relaying proposals JoelKatz 2014-03-11 20:29:38 -07:00
  • 2e8df429df Expose PeerImp::start instead of requiring the use of accept/connect Nik Bougalis 2014-03-11 18:28:32 -07:00
  • 7aa1222310 Fix the "peer action" transition from syncing to full JoelKatz 2014-03-11 05:15:56 -07:00