Nik Bougalis
b35eabe161
Optimize SQL query composition
2014-05-26 15:29:48 -07:00
Tom Ritchford
4b3e629dfd
Allow ledgers to be loaded from the command line.
...
Conflicts:
src/ripple_data/protocol/BuildInfo.cpp
2014-05-19 10:53:39 -07:00
Tom Swirly
a844026f6b
Clean up pre C++1 idioms:
...
* Use auto for in some loops
* Fix shadowing iterator declaration
* Rename NUMBER to ARRAYSIZE.
* Use placeholders instead of macros
* Replace macro BIND_TYPE with std::bind
* Replace BOOST_FOREACH with range-for
2014-05-19 10:53:38 -07:00
David Schwartz
6f2bcc6fb0
Keep SHAMapNodes that fault in handling client requests.
2014-05-09 11:46:24 -07:00
David Schwartz
66a762d504
Rework handling of modified ledger nodes:
...
* Track dirty nodes in a set
* Make flushDirty a member function
* Don't write deleted nodes
* Make sure new nodes are shareable
* Put new nodes in the treeNodeCache
2014-05-09 11:46:15 -07:00
Nik Bougalis
6339800946
Refactor base_uint<> and STAmount::getText:
...
base_uint<>:
* Remove unnecessary typedefs and derived classes
* Factor out common code and eliminate redundancies
* Add tag support to improve type safety
* base_uint::ToString() -> to_string(base_uint const&)
* base_uint::GetHex() -> to_string(base_uint const&)
STAmount::getText:
* Don't overallocate
* Eliminate unnecessary copying
2014-05-09 11:45:44 -07:00
David Schwartz
6fcf3fedb6
Use Json::StaticString to improve performance:
...
* Move JSON-RPC fields to jsonrpc_fields.h
2014-05-07 13:04:35 -07:00
Miguel Portilla
3025d8611b
Rename Feature to Amendment:
...
* Added a README.md describing an Amendment
2014-05-05 13:50:00 -07:00
Miguel Portilla
98612a7cd6
Cleanup nodestore backend classes:
...
* Add README.md
* Add missing std::move calls
* Refactor visitAll in backend
2014-05-05 13:50:00 -07:00
JoelKatz
1ba0d40bb4
Small Ledger cleanups and improvements:
...
* Remove call to updateHash in LedgerConsensus::accept
* Correct serialization size in updateHash
* Add some comments to setImmutable and setAccepted
2014-04-28 14:54:15 -07:00
Nik Bougalis
5fddf374f4
Refactor usage of boost::format
2014-04-15 11:48:34 -07:00
Nik Bougalis
2ed8edc19d
Make is_set_bit a universal template function
2014-04-15 11:40:58 -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
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
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
JoelKatz
fca8fa1b1b
Clean up ledger fetch reasons.
...
Don't trigger immediately when fetching historical ledgers.
2014-03-03 10:57:36 -08:00
Vinnie Falco
2009f8b1ca
Add insight support to TaggedCache, KeyCache:
...
* Move TaggedCache, KeyCache to common
* Add radmap module, FullBelowCache class
* Add get_seconds_clock
* Inject FullBelowCache in SHAMap
2014-02-03 23:00:45 -08:00
David Schwartz
02483b2e0b
Avoid race conditions updating ledger fee entries
2014-01-31 19:26:53 -08:00
JoelKatz
e25a83bb39
Some tiny bugfixes:
...
* Don't let ledger idle interval get too short
* Fix CBigNum::setuint256
* Fix SqliteStatement::isError
* Remove dead code, fix incorrect comments
* Check for NULL earlier in CKey constructors
* Prevent expire times from underflowing in TaggedCache
2014-01-07 15:57:49 -08:00
JoelKatz
750cbb8399
Improvements because items in SHAMaps are immutable:
...
* SHAMapItem::getData is not needed
* SHAMapTreeNode::getItem is not needed
* SHAMapTreeNode::getData is not needed
* No need to copy them when constructing transactions
* No need to copy them when computing map deltas
* No need to copy them in deepCompare
* No need to copy them in SHAMapTreeNode's copy constructor
2014-01-07 15:57:48 -08:00
JoelKatz
045beb5f36
Concurrent SHAMap code
...
Use shared lock for SHAMap itself and concurrent map for nodes
2014-01-07 15:57:47 -08:00
Vinnie Falco
087301933a
General refactoring, using C++11
...
* Remove broken RecycledObjectPool
* Fix beast::ServiceQueue using List instead of LockFreeStack
* Add class semaphore, fixes broken Semaphore
* Move crytpo module files to new beast directory
* Use c++11 replacements for boost and beast types:
- std::atomic instead of beast::Atomic
- std::function instead of boost::function, beast::function
- std::unique_ptr instead of beast::ScopedPointer
- std::shared_ptr instead of boost::shared_ptr
* Remove modules:
- beast_db
- beast_crypto
- beast_extras
* Remove unnecessary classes:
- AbstractFifo
- AddConst
- AtomicCounter
- AtomicFlag
- AtomicPointer
- AtomicState
- CopyConst
- Expression
- ForwardList
- IfCond
- Interval
- IntrusiveArray
- KeyvaDB
- PointerToOther
- PointerTraits
- RemoveConst
- RemoveConstVolatile
- RemoveReference
- RemoveVolatile
- SharedObjectArray
- SingleThreadedSharedObject
- SophiaDB factory
- SortedSet
- WeakReference
- beast::unique_ptr
2014-01-07 15:57:45 -08:00
JoelKatz
52333b8bd4
Fix a compiler warning in Ledger::visitStateItems
2014-01-07 15:48:50 -08:00
David Schwartz
02b5572ccc
Changes to support the ledger cleaner
...
* Rework ledger save return values to indicate errors to callers
* Add an extra function to support the ledger cleaner.
2013-11-20 12:22:45 -08:00
Vinnie Falco
b660d82516
Make TxFormats a Meyers singleton
2013-11-20 10:16:46 -08:00
JoelKatz
9322233b37
Allow the SHAMap visitLeaves functions to sanely handle a missing map node.
2013-11-13 11:04:17 -08:00
JoelKatz
37bcf7899e
Improve performance of some RPC ledger commands using visitors.
...
Adds SHAMap::visitLeaves and Ledger::visitStateItems
2013-10-04 11:50:22 -07:00
JoelKatz
92bd8c4782
Missing return.
2013-09-26 17:14:55 -07:00
JoelKatz
d10dba6b2e
Fix a case where the AcceptedLedger constructor throws
2013-09-26 15:19:26 -07:00
Vinnie Falco
fcd689afbf
Update copyright notice and licenses
2013-09-25 17:27:06 -07:00
JoelKatz
007723236e
Change the way the OrderBookDB is updated to prevent hangs.
2013-09-16 18:27:25 -07:00
JoelKatz
74b2d1f3fa
Pass a bool to the describer telling it if the directory is new.
2013-09-16 18:12:21 -07:00
Vinnie Falco
45eccf2ccf
Move ./modules to ./src
2013-09-11 11:20:53 -07:00