Vinnie Falco
fdfe047f3e
Fix new RPC dispatcher params
2014-02-11 19:05:08 -08:00
Vinnie Falco
9c5b071556
Fix crash on exit in ~InboundLedger
2014-02-08 11:07:10 -08:00
Vinnie Falco
f469e3853d
Insight support for jobs:
...
* Add insight Groups to Application singleton
* Put JobQueue metrics into "jobq" Group
* Add queued time to Job
* Add per-type Job queue time metrics
* Add per-type Job execution time metrics
* Break JobQueue sources out of the namespace
* Use free function to create the JobQueue
2014-02-08 10:09:22 -08:00
Vinnie Falco
9b657ba224
Refactor RPC module:
...
* Move JsonPropertyStream to ripple_json
* Remove unused RPC service manager
* Recreate RPC module in app code area
* Add RPC::Manager
* Add DoPrint handler
2014-02-06 18:21:08 -08:00
Nik Bougalis
572aae320d
Performance fixes: decongest master lock
2014-02-05 15:57:10 -08:00
Nik Bougalis
1a6bf88900
Resolver Work:
...
* Don't stall during shutdown
* Properly handle unit test execution
* Handle whitespace when parsing names to resolve
2014-02-05 15:57:09 -08:00
Nik Bougalis
e60b28980a
PeerFinder work and refactoring:
...
* Implement PeerFinder business logic.
* Support fixed peers (including DNS support).
* Add journal support to Peer and Peers.
* Refactor PeerDoor support.
* Tidy up Peers and eliminate connection functionality and timers.
* Refactor Peer interface and add journal support.
* Allow construction of incoming Peer using an existing socket.
* Remove TESTNET support.
* Allow connections from/to cluster peers without consuming slots
* Misc. cleanups.
2014-02-05 15:56:04 -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
Vinnie Falco
7fb614f7af
Fix application pointer singleton lifetime
2014-02-03 22:36:28 -08:00
Nik Bougalis
123c482a69
Robustly validate input to the 'ledger' RPC command
2014-02-03 18:43:21 -08:00
Vinnie Falco
23eccebf5b
Fix crash on exit via Application singleton
2014-02-01 21:28:12 -08:00
Vinnie Falco
15112c1a27
Fix mutable tx json field for autofill_fee
2014-02-01 07:10:53 -08:00
David Schwartz
d0ca81ff36
visitLeaves must visit all branches
2014-01-31 19:26:53 -08:00
David Schwartz
5df5983f88
Fix missing call to setHeartbeatTimer
2014-01-31 19:26:53 -08:00
David Schwartz
aa5ca7cea5
Don't copy the parameters when calling lookupLedger
2014-01-31 19:26:53 -08:00
David Schwartz
02483b2e0b
Avoid race conditions updating ledger fee entries
2014-01-31 19:26:53 -08:00
David Schwartz
f7817866ba
call pubValidatedTransactions, we may have book listeners
2014-01-31 19:26:53 -08:00
JoelKatz
d62287d54b
Calculate correct fee in RPC sign/submit, error if over limit
2014-01-31 19:26:53 -08:00
NATTSiM
bac8d41954
Pass IPAddress in getAdminRole
2014-01-28 22:52:11 -08:00
JoelKatz
b5ffa2351a
DirectoryEntryIterator fix
2014-01-24 10:54:56 -08:00
JoelKatz
1b37b52071
Whitespace changes
2014-01-24 10:54:47 -08:00
JoelKatz
b1ffd10079
Fix "limit" mishandling in doBookOffers
2014-01-24 10:53:55 -08:00
JoelKatz
8825d94636
Temporarily change getBookPage not to use OB iterators
2014-01-23 16:26:45 -08:00
JoelKatz
c8a7b2af56
Prevent infinite loop in getBookPage
2014-01-23 16:05:38 -08:00
JoelKatz
d475994e02
Pairwise no ripple:
...
* Cannot set noRipple flag with negative balance.
* Paths with consecutive no ripple links are invalid
* Adjust pathfinding value of no ripple out paths
* Check for no ripple when adding links in pathfinding
* Remove old noRipple logic
* Update trust line delete logic
2014-01-23 13:38:33 -08:00
JoelKatz
f0bb3dfdfb
Never allow a retry as a final result
2014-01-23 13:38:28 -08:00
JoelKatz
e7f0b8eca6
Add DeliveredAmount to transaction metadata
2014-01-23 13:38:25 -08:00
JoelKatz
0bab6a9fec
Add directory and order book iterators
...
This should fix the crossed order book bug.
* Change OfferCreate::takeOffers to use new iterators
* Change NetworkOps::getBookPage to use new iterators
* If we find an offer in the book but not the ledger, deindex it
2014-01-23 13:38:11 -08:00
David Schwartz
9486fc416c
Support AccountTxnID and LastLedgerSequence.
2014-01-23 13:37:46 -08:00
JoelKatz
58a6ca1d3d
Remove extraneous logging
2014-01-23 13:24:51 -08:00
JoelKatz
505f029edb
Clean up 'destination_currencies' in new pathfinding reply
2014-01-23 13:24:43 -08:00
JoelKatz
815659b898
Replace a lock with an atomic in new pathfinding
2014-01-23 13:24:33 -08:00
JoelKatz
07d16f280c
Clean up the checkAccept path to use the ledger sequence
2014-01-23 13:24:28 -08:00
Vinnie Falco
65ffdff40c
Insight support for ResourceManager
2014-01-21 10:28:36 -05:00
Vinnie Falco
c95dccfec6
Move PathRequests to separate files
2014-01-21 10:28:36 -05:00
Vinnie Falco
fe83f471f5
Use duration in insight::Event, add chrono_util
2014-01-21 10:28:35 -05:00
Vinnie Falco
9d07ddeae1
Improved human readable JSON-RPC error messages
2014-01-21 10:28:34 -05:00
David Schwartz
486539b3d3
Make offerDelete and fill Items more robust.
2014-01-21 10:28:34 -05:00
David Schwartz
990fb20a2a
OrderBookDB::addOrderBook cleanup
2014-01-21 10:28:33 -05:00
Vinnie Falco
9b61a83721
Refactor, tidy up:
...
* Fix for msvc std::function return types
* Convert macros to constants
* Add Journal to PeerSet and use in InboundLedger
* Break lines and add annotations
* Remove some warnings
2014-01-21 10:28:33 -05:00
JoelKatz
f753519976
Ledger fetch improvements. Fetch policy improvements.
2014-01-17 16:06:15 -08:00
David Schwartz
663e38dcdd
Locking and dispatching performance improvements:
...
* Avoid taking the master lock in most peer operations
* Dispatch recvGetLedger to JobQueue
* Dispatch consensus ledger fetches.
* Release master lock earlier in RPCHandler
2014-01-17 16:05:48 -08:00
Vinnie Falco
7570b6489d
Fix and tidy up NodeStore
...
* Use std::unique_ptr
* Move globals to Manager singleton (fixes RocksDB exit crash)
2014-01-17 15:21:51 -05:00
Vinnie Falco
c341d1a71e
Tidy up for C++11, and fixes:
...
* Remove shared_ptr legacy support
* Add make_unique support for pre-C++14 environments
* Fix comparison bug in sqdb
* Use std::shared_ptr in a few places
2014-01-17 12:19:04 -05:00
Vinnie Falco
fa10e90c9d
Use abstract_clock
2014-01-17 12:19:04 -05:00
Vinnie Falco
68501763dd
Refactor KeyCache
2014-01-17 12:19:04 -05:00
NATTSiM
25ff77c2fd
Fix Clang compile and link errors
2014-01-16 17:18:05 -05:00
Vinnie Falco
2870c7f457
Workaround for MSVC std::function bug
2014-01-15 19:10:08 -08:00
JoelKatz
ab8d7a86ae
Dispatch peerHas to JobQueue
2014-01-14 11:24:41 -08:00
JoelKatz
809359e81e
Correctly handle empty account tree in ledger fetch
2014-01-14 11:24:32 -08:00