David Schwartz
14830c7cb4
Avoid redundant unlock
2014-03-31 09:11:52 -07:00
JoelKatz
5a21269da4
mRecentPositions must be protected by the master lock.
2014-03-28 13:45:53 -07:00
JoelKatz
cc5466d450
Reject expired transactions immediately
2014-03-28 10:33:53 -07:00
JoelKatz
a068bff9c1
Set fully-canonical flag in transactions and validations.
2014-03-28 09:34:22 -07:00
David Schwartz
1e54472a1d
Clean local transaction checks. Check account field size
2014-03-25 16:20:22 -07:00
David Schwartz
be9e18ddb8
Track and re-appply LocalTransactions as needed
2014-03-25 16:20:22 -07:00
JoelKatz
5d1aec6280
Charge for pathfinding updates.
2014-03-25 16:20:22 -07:00
JoelKatz
0442b3a683
Change resource costs.
2014-03-25 16:20:22 -07:00
Vinnie Falco
bbc8a8fdc4
Move hardened_hash to container/
2014-03-25 15:22:34 -07:00
Vinnie Falco
428872731a
Add beast SConstruct and .travis.yml
2014-03-25 15:22:34 -07:00
Nik Bougalis
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
2014-03-25 15:22:33 -07:00
Nik Bougalis
436061be22
Transactor journal support and small cleanups
2014-03-25 15:22:13 -07:00
Nik Bougalis
d447a1db39
Refactor ECDSA canonical checks:
...
* Add signature canonicalization unit tests
* Tidy up into new classes and functions
2014-03-25 15:22:13 -07:00
Luke Cyca
a4a7dd4314
Fedora RPM support:
...
- Add RPM spec file
- Whitelist Fedora during SConstruct
2014-03-24 14:07:36 -07:00
Roberto Catini
4886772ca3
Add Arch Linux PKGBUILD:
...
The install process will first fetch the tip of the master branch
to build the latest official rippled release. It will also create
all the necessary data directories in /var.
An optional systemd service definition file is included.
2014-03-24 14:07:27 -07:00
The Doctor
0f19efac2d
Example configuration file update:
...
- Fix config database default location.
- Add SSL/TLS for WebSockets config. Currently commented out.
2014-03-24 14:07:19 -07:00
Vinnie Falco
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
2014-03-23 15:23:55 -07:00
Vinnie Falco
936f45c7ec
Add hardened_hash, prevents adversarial inputs
2014-03-22 18:42:18 -07:00
Vinnie Falco
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
2014-03-21 18:00:37 -07:00
Vinnie Falco
547019bd1b
beast.streams improvements:
...
* New basic_std_ostream wraps any std::stream.
* New debug_ostream redirects output to debugger if attached.
2014-03-21 07:33:16 -07:00
Vinnie Falco
953805d97e
Add const_container
2014-03-21 07:33:16 -07:00
Vinnie Falco
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
2014-03-21 07:30:50 -07:00
Vinnie Falco
693a5927a9
Update to SQLite 3.8.4.1
2014-03-20 19:17:25 -07:00
Howard Hinnant
07e2f87079
Fix and add tests for empty_base_optimization.
2014-03-20 13:47:48 -07:00
Vinnie Falco
9b152d8098
Fix error code assignment in raw_parser
2014-03-20 10:43:01 -07:00
Vinnie Falco
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
2014-03-19 15:42:20 -07:00
Vinnie Falco
f1462de729
Add workaround/noexcept.h for visual studio
2014-03-19 13:42:05 -07:00
Vinnie Falco
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
2014-03-19 13:42:04 -07:00
Howard Hinnant
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.
Conflicts:
src/ripple_app/shamap/SHAMapSync.cpp
src/ripple_app/tx/TransactionEngine.cpp
2014-03-19 13:42:01 -07:00
Vinnie Falco
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
2014-03-19 10:41:24 -07:00
Vinnie Falco
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
2014-03-17 17:40:55 -07:00
Vinnie Falco
816fab000d
Fix SConstruct compiler arguments
2014-03-17 14:49:31 -07:00
Nik Bougalis
66d1dd6f81
Build system improvements:
...
* Reduce console verbosity.
* Display configured build environment.
* Log build environment and commands in rippled-build.log.
* When compiling under Travis:
- define TRAVIS_CI_BUILD for C and C++ code.
- define RIPPLE_MASTER_BUILD for builds made against
the official Ripple repository.
2014-03-17 09:22:11 -07:00
Vinnie Falco
3eae68fc34
Remove obsolete support scripts
2014-03-15 06:07:43 -07:00
Vinnie Falco
8545aee4c7
Better diagnostics for SSL certificate failures
2014-03-14 16:20:34 -07:00
Vinnie Falco
29a4f61551
Set version to 0.23.0
2014-03-14 13:01:23 -07:00
Vinnie Falco
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
* Removed obsolete classes and functions
- AbstractHandler
- ComposedAsyncOperation
- SharedFunction
- SharedHandler
- SharedHandlerAllocator
- SharedHandlerPtr
- SharedHandlerType
- SocketBase
- SocketWrapperStrand
- wrapHandler
* Refactored classes to use new tools
- abstract_socket
- socket_wrapper
- HandshakeDetector
- HttpClientType
* Miscellanous tidying
- socket classes moved to beast::asio namespace
- beast asio files provide their own namespace declaration.
- Fix IsCallPossible conflicting template parameter name
- Use <boost/get_pointer.hpp> for C++11 compatibility.
- Remove extraneous include path from build environment.
2014-03-14 08:03:48 -07:00
Vinnie Falco
e3c1375f36
Add std::integer_sequence C++14 compatibility
2014-03-14 07:57:20 -07:00
Vinnie Falco
4e357601ec
Move MultiSocket, RippleSSLContext to common module
2014-03-14 07:57:20 -07:00
Vinnie Falco
3674b01634
Add ripple::byte_view, ripple::const_byte_view
2014-03-14 07:57:20 -07:00
Vinnie Falco
f66aee4e7f
Add beast::buffer_view
2014-03-14 07:57:19 -07:00
Vinnie Falco
b2f06dbe3c
Add C++11 noexcept compatibility for VS2013
2014-03-14 07:57:19 -07:00
sublimator
b78076670e
Fix typos: tecMASTER_DISABLED, tecNO_REGULAR_KEY
2014-03-14 07:57:18 -07:00
sublimator
a08a0703b6
Remove Jenkins CI build status badge
...
This isn't used any more is it?
2014-03-13 21:15:13 -07:00
sublimator
f80561e6aa
Travis: disable gdb thread event logging
...
Attempt 2
2014-03-13 21:15:13 -07:00
JoelKatz
f5765b71f2
Handle unexpected relative paths from __FILE__
...
Fixes comref#RIPD-133
2014-03-13 16:49:20 -07:00
Vinnie Falco
6a6be847c0
Set version to 0.23.0-rc1
2014-03-12 19:05:08 -07:00
Nik Bougalis
4e26108a06
Protect callers of MultiSocket::remote_endpoint from exceptions
2014-03-12 13:51:00 -07:00
JoelKatz
c517d261bb
Return a sensible error for unknown inner JSON fields
2014-03-12 00:54:00 -07:00
JoelKatz
5522a23670
Don't relay old proposals.
2014-03-11 22:21:34 -07:00