Howard Hinnant
58547f6997
Tidy up hardened containers (RIPD-380):
...
* Rename hardened containers for clarity
* Fixes https://ripplelabs.atlassian.net/browse/RIPD-380
2014-07-28 09:06:35 -07:00
Nik Bougalis
5df40bd746
Fix auth handling during OfferCreate (RIPD-414)
2014-07-28 08:57:22 -07:00
Howard Hinnant
403f15dc48
Documentation for Ledger Consensus implementation (RIPD-405)
2014-07-28 08:56:23 -07:00
Vinnie Falco
fa11071443
Enable asynchronous handling of HTTP-RPC (RIPD-390)
...
* Activate async code path
* Tidy up HTTP server code
* Use shared_ptr in HTTP server
* Remove check for unspecified IP
* Remove hairtrigger
* Fix missing HTTP authorization check
* Fix multisocket flags in RPC-HTTP server
* Fix authorization failure when no credentials required
* Addresses RIPD-159, RIPD-161, RIPD-390
2014-07-24 20:22:55 -07:00
Tom Ritchford
96e1ec6d31
Fix build warnings and .gitignore.
...
* Comment out unused local function for both clang and g++.
* Get rid of numerous Boost warnings for clang.
* Remove some unused local variables.
* Put TAGS into the .gitignore.
2014-07-24 20:18:51 -07:00
Tom Ritchford
6335e34395
Simplify locking and move a typedef.
...
* Make DatabaseCon's lock private and expose a scoped lock_guard.
* Get rid of DeprecatedRecursiveMutex and DeprecatedScopedLock entirely.
* Move CancelCallback to Job where it logically belongs.
2014-07-23 19:38:52 -07:00
Scott Schurr
02c2029ac1
Add more documentation of ledger acquisition (RIPD-373)
...
Capturing information from a seminar on the topic into the source tree.
2014-07-23 19:29:13 -07:00
David Schwartz
6914aa3e27
Check for payment increments that make no progress. (RIPD-374)
2014-07-23 19:27:55 -07:00
David Schwartz
f4fcb1cc9a
Remove some dead SHAMapMissingNode code
2014-07-23 19:27:50 -07:00
David Schwartz
b6eec21ec0
Pathfinder cleanups, more efficient 'd' handling (RIPD-156)
2014-07-23 19:27:46 -07:00
David Schwartz
0ce3aeb189
Stop finding paths when enough are found (RIPD-156)
2014-07-23 19:27:42 -07:00
Howard Hinnant
84c6622122
Fix bugs, typo in SHAMapNodeID
2014-07-18 17:45:51 -07:00
Miguel Portilla
63f099f2f6
Fix book_offers limit parameter (RIPD-295)
...
Conflicts:
src/ripple/module/app/misc/NetworkOPs.cpp
2014-07-18 10:37:45 -07:00
JoelKatz
4cf29455e4
Freeze flags: (RIPD-394)
...
* Define all flags
* Set/clear bits in transactors
* Frozen line counts towards reserve, is non-default
* Report trust line state
2014-07-18 10:35:06 -07:00
David Schwartz
07db5d497c
Remove SHAMapNodeID from SHAMapTreeNode (RIPD-347)
...
This resolves the "right data, wrong ID" issue in the
tree node cache.
2014-07-18 10:35:06 -07:00
JoelKatz
f1bb0afc4e
Improve transaction fee and execution logic (RIPD-323):
...
* tecINSUFF_FEE if balance doesn't cover fee
* Ensure transaction recovery is deterministic
* Reduce transaction retries
2014-07-18 10:35:06 -07:00
Vinnie Falco
d791fe3013
Fix msvc static initialization in SHAMapNodeID
2014-07-17 20:05:39 -07:00
Miguel Portilla
c16e22a5c6
Fix book_offers limit parameter (RIPD-295)
2014-07-17 18:01:20 -07:00
Howard Hinnant
1b3356cafd
Remove calls to SHAMapNode::getID (RIPD-347):
...
Calls in SHAMap::getCache and SHAMap::canonicalize are
purposefully left in place at this time (to be removed
later).
2014-07-17 15:58:03 -07:00
Howard Hinnant
28898031f0
Eliminate spurious SHAMap::getFetchPack failure (RIPD-379)
2014-07-17 10:38:07 -07:00
Vinnie Falco
f876ad973f
Fix static_initializer: …
...
* Prevents double construction, invalid access
* Unit test works on MSVC and non MSVC
2014-07-16 16:43:17 -07:00
Tom Ritchford
6014b13234
Use Books in Ledger.
2014-07-15 21:16:42 -07:00
Tom Ritchford
bbbae072ea
Simplify initialization of Pathfinder using C++11 constructs.
2014-07-14 10:04:27 -07:00
Tom Ritchford
d7e08f96a5
Various tidying:
...
* Fix unused variable warnings.
* Clean unused items from TER.
* Improvement to LES use of shared_ptr.
2014-07-10 15:11:33 -07:00
JoelKatz
4d49d272eb
Fix account_tx resume (RIPD-314)
2014-07-10 15:11:33 -07:00
JoelKatz
faa6890950
Find 'sabfd' paths (RIPD-335)
...
This permits USD/GW1 to be bridged to USD/GW2 by BTC/GW3 or
USD/GW1 to be bridged to BTC/GW2 by CNY/GW3.
2014-07-10 15:11:33 -07:00
David Schwartz
9c390f6da4
Impose a local limit on path lengths (RIPD-350)
2014-07-10 15:09:06 -07:00
Scott Schurr
6842277977
Add documentation for ledger entries (RIPD-361)
2014-07-10 15:08:07 -07:00
Scott Schurr
baaa45f8c7
SHAMap Documentation
2014-07-06 14:57:59 -07:00
Tom Ritchford
322af30d6a
Pathfinding Documentation
2014-07-06 14:57:59 -07:00
Tom Ritchford
206efbf30d
Rename RippleAsset to Issue and RippleBook to Book:
...
* Split STAmount out of SerializedTypes.h
* New concept of "Issue consistency": when either both or neither of its
currency and account are XRP.
* Stop checking for consistency of Issue in its constructor.
* Clarification of mIsNative logic in STAmount.
* Usual cleanups.
2014-07-06 14:57:59 -07:00
Tom Ritchford
a96dee85d2
Remove recursions from computeLiquidity
2014-07-06 14:57:58 -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
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