Tom Ritchford
a96dee85d2
Remove recursions from computeLiquidity
2014-07-06 14:57:58 -07:00
Vinnie Falco
d307568cbc
Update rocksdb unity file
2014-07-03 17:49:17 -07:00
Vinnie Falco
424d9b8385
Add preliminary Structured Overlay docs
2014-07-03 14:34:38 -07:00
Vinnie Falco
1b48ccc868
Fix base log partition severity
2014-07-03 11:57:14 -07:00
Howard Hinnant
fac82204b6
Remove boost::hash_value() overloads.
...
This addresses https://ripplelabs.atlassian.net/browse/RIPD-102
2014-07-02 15:33:11 -07:00
David Schwartz
61f114e655
Cleanup confusion of ledger base versus ledger header
...
The "ledger header" is the chunk of data that hashes to the
ledger's hash. It contains the sequence number, parent hash,
hash of the previous ledger, hash of the root node of the
state tree, and so on.
The term "ledger base" refers to a particular type of query
and response used in the ledger fetch process that includes
the ledger header but may also contain other information
such as the root node of the state tree.
2014-07-02 15:33:10 -07:00
Vinnie Falco
aa24969eee
Add README.md for ledger process
2014-07-01 12:42:41 -07:00
David Schwartz
a5297d13c4
Add new memo restrictions
2014-07-01 12:13:47 -07:00
David Schwartz
b06bdb83cb
Fix a case where we put an extra node in the SHAMapDiff
2014-07-01 12:13:13 -07:00
David Schwartz
914778eae1
In JSON, output unprintable currency codes as hex
2014-06-30 16:40:53 -07:00
Vinnie Falco
3d5ae42660
Structured Overlay support:
...
* Add Peer Protocol detector
* Add RIPPLE_SINGLE_IO_SERVICE_THREAD setting
* Preliminary HTTP header parsing logic (disabled)
2014-06-26 18:24:50 -07:00
David Schwartz
ed2c5078ad
Tighten up some serialization checks
2014-06-26 17:16:34 -07:00
sublimator
aec792f5b8
Restore checkpointed ledger under all paths in PathFind.
2014-06-26 17:16:34 -07:00
Nik Bougalis
17d64de3d5
During playback close ledger before accepting
2014-06-26 17:16:34 -07:00
Tom Ritchford
f6bea08535
Update state during pathfinding
2014-06-26 17:16:33 -07:00
Tom Ritchford
feab6c39b3
New types Account, Currency, Directory:
...
* New tagged uint types.
* Extract to_string functions from header to hide dependencies.
* Include what you use and C++11 for cleanups.
2014-06-26 17:16:30 -07:00
Nik Bougalis
e999c76882
Autobridging:
...
* Remove legacy OfferCreate transactor
* Misc. cleanups on LedgerEntrySet
* Fix a subtle bug with arithmetic operations on Quality
* Sanity check offers after taking
2014-06-26 12:03:52 -07:00
Scott Schurr
837872c3f3
Move static treeNodeCache from SHAMap to the Application
...
These changes address two JIRA issues:
- 291 unittest reported leaked objects
- 292 SHAMap::treeNodeCache should be a dependency injection
The treeNodeCache was a static member of SHAMap. It's now a
non-static member of the Application accessed through
getTreeNodeCache(). That addressed JIRA 291
The SHAMap constructors were adjusted so the treeNodeCache is
passed in to the constructor. That addresses JIRA 292, It required
that any code constructing a SHAMap needed to be edited to pass
the new parameter to the constructed SHAMap.
In the mean time, SHAMap was examined for dead/unused code and
interfaces that could be made private. Dead and unused interfaces
were removed and methods that could be private were made private.
2014-06-26 11:10:51 -07:00
Tom Ritchford
55222dc5d1
New types Account, Currency, Directory:
...
* New tagged uint types.
* Extract to_string functions from header to hide dependencies.
* Include what you use and C++11 for cleanups.
2014-06-24 11:11:25 -07:00
David Schwartz
adce6ae851
Ledger loading cleanups:
...
* Fix close time settings for ledger load
* More info in ledger_request and inbound ledger JSON replies
2014-06-23 20:19:53 -07:00
Howard Hinnant
9dc32cb791
SHAMap refactoring:
...
* Rename SHAMapNode to SHAMapNodeID.
* Cleanups
2014-06-23 20:19:53 -07:00
Howard Hinnant
23dc08c925
Improve Journal logging framework:
...
* Allow partition log levels to be adjusted
* Cleanups
2014-06-23 20:19:53 -07:00
Vinnie Falco
d6066183b9
Refactor Overlay for Structured Network support:
...
* Move overlay up one directory
* Add abstract_protocol_handler, message_stream
* Add peer_protocol_detector
* Tidy up some declarations
* Use strand::running_in_this_thread instead of bool
* Update README.md
* Replace protocol message read loop:
- Process data in arbitrary size chunks
- message_stream extracts individual messages
- peer_protocol_detector identifies the handshake
- abstract_protocol_handler used for dispatching messages
* Remove unused protocol message types:
- mtACCOUNT
- mtCONTACT
- mtERROR
- mtGET_ACCOUNT
- mtGET_CONTACTS
- mtGET_VALIDATIONS
- mtSEARCH_TRANSACTION
- mtUNUSED_FIELD
Conflicts:
src/ripple/module/app/main/Application.cpp
src/ripple/module/app/misc/NetworkOPs.cpp
src/ripple/module/app/peers/PeerSet.cpp
2014-06-18 15:17:18 -07:00
Tom Ritchford
e24cba8c35
Better types and more comments in RippleCalc.
...
* Better automatic conversions to and from tagged uint160 varints.
* Start using tagged variants of uint160 for Currency, Account.
* Comments from 2014/6/11 RippleCalc session.
2014-06-18 12:38:06 -07:00
Tom Ritchford
a23013abc1
Tidy up rpc module:
...
* Move directory up to ripple/module/rpc
* Use C++11 idioms and best practices
2014-06-18 12:37:53 -07:00
Vinnie Falco
4e07dbbefc
Fix state check in PeerImp::recvHello
2014-06-16 18:14:25 -07:00
David Schwartz
dcf4ad2c21
Ledger load and ledger replay fixes:
...
* Stash the loaded ledger where consensus can find it.
* When loading a ledger for startup, try the backend too
* Apply replay transactions to a mutable snapshot
2014-06-16 17:29:11 -07:00
Nik Bougalis
04dd861fe3
Cleanup:
...
* Remove is_bit_set and use regular bitwise operations instead.
* Remove the function-like macro "nothing".
2014-06-16 17:29:11 -07:00
Vinnie Falco
a57e4263d7
Fix MSVC workaround in basic_seconds_clock
2014-06-16 16:18:09 -07:00
Vinnie Falco
a52c9232c4
Tidy up basics module:
...
* Move directory up
* Remove unity includes and "include what you use"
2014-06-15 18:51:05 -07:00
Vinnie Falco
506910147f
Tidy up includes:
...
* Replace boost with std equivalents:
- bind, ref, cref, function, placeholders
* More "include what you use"
* Remove unnecessary includes
2014-06-15 18:26:50 -07:00
Vinnie Falco
cf3eb24eb0
Move nodestore to its own module
2014-06-15 12:50:44 -07:00
Vinnie Falco
f660743065
Remove unused SHAMap::getItem
2014-06-13 14:00:17 -07:00
David Schwartz
4559bd9030
Improve the way we declare a close time consensus
2014-06-12 10:20:48 -07:00
David Schwartz
3ac98fb101
SyncUnorderedMap cleanup
2014-06-12 10:14:47 -07:00
David Schwartz
aff52db289
Re-use the serializer
2014-06-12 10:14:47 -07:00
David Schwartz
ea27dfe08d
Find 'sbfd' paths.
2014-06-12 09:41:52 -07:00
Tom Ritchford
27620af1bf
Further cleanups of RippleCalc.
...
* Rename many variables.
* Make most of PathState private.
* Extract out common Node::isAccount() code.
* Rename bConsumed to allLiquidityConsumed_.
* Extract out code into PathState::clear().
2014-06-09 12:57:26 -07:00
Tom Ritchford
3fb27d98ab
Clean up LookupLedger and resolve issue 278.
...
* Use beast::zero to resolve issue 278.
* Rename variables and simplify logic.
* Restrict to 80 columns.
2014-06-09 12:40:38 -07:00
Tom Ritchford
7e45c17730
Rename ledger_get to ledger_request.
2014-06-09 12:37:24 -07:00
Tom Ritchford
626533d4a7
Clean up RPC messages from Main
2014-06-09 12:37:23 -07:00
Tom Ritchford
39719f4c17
Rearrange branch in accordance with new practices.
2014-06-09 12:37:23 -07:00
JoelKatz
526bd88dc4
Add ledger_get RPC command to fetch a ledger from the network
...
Conflicts:
Builds/VisualStudio2013/RippleD.vcxproj
Builds/VisualStudio2013/RippleD.vcxproj.filters
Builds/VisualStudio2013/RippleD2.vcxproj
Builds/VisualStudio2013/RippleD2.vcxproj.filters
src/ripple_rpc/impl/Handlers.cpp
2014-06-09 12:37:22 -07:00
Vinnie Falco
37201ecaa6
Include BeastConfig.h from the root include path
2014-06-09 12:35:16 -07:00
Vinnie Falco
8b881d3a77
Add CBase58Data::hash_append
2014-06-05 20:00:24 -07:00
mDuo13
dfb1db4ab3
Return correct error for missing pathfinding request. Fixes RIPD-293
2014-06-05 17:47:28 -07:00
Vinnie Falco
4362cb660b
Replace boost::shared_ptr with std::shared_ptr
2014-06-05 13:04:23 -07:00
Vinnie Falco
1aa0749ba8
Update rocksdb unity build
2014-06-04 17:20:43 -07:00
Vinnie Falco
724ec46129
Use per-file include directories for external code subtrees:
...
* leveldb, hyperleveldb, rocksdb, snappy
* SConstruct OSX fix regarding OpenSSL version check
2014-06-04 13:28:43 -07:00
Vinnie Falco
4f1d1d2a8a
Reorganize source file hierarchy:
...
* Rename unity files
* Move some modules to new subdirectories
* Remove obsolete Visual Studio project files
* Remove obsolete coding style and TODO list
2014-06-03 21:43:59 -07:00