Commit Graph

125 Commits

Author SHA1 Message Date
JoelKatz
41b70c76da If we detect a missing node in a ledger we're supposed to have full,
re-acquire that ledger to fill the hole.
2013-05-08 15:55:52 -07:00
JoelKatz
46c1488484 Buglets found by static code inspection, including a whopper in divRound. 2013-04-27 00:35:16 -07:00
JoelKatz
8a368204c1 Last part of the fetch pack code. 2013-04-22 06:56:11 -07:00
JoelKatz
8ed0d107fd Allow administrators to submit transactions that don't meet the local load fee. 2013-04-15 17:14:20 -07:00
JoelKatz
d73995e695 An optimization. Faster GetHex for exact strings. 2013-04-01 21:01:06 -07:00
JoelKatz
78d1a93e69 Reusing prepared statements is slower. 2013-04-01 20:24:01 -07:00
JoelKatz
5cc9314d03 Add a framework for detecting databases that need updating.
Put transaction from account_tx command in transaction application sequence.
CAUTION: This modifies your databases and will cause a delay on your next startup.
2013-04-01 19:03:28 -07:00
JoelKatz
bd4e00e391 On some platforms, make_shared can only count to 9. 2013-03-31 15:39:38 -07:00
JoelKatz
2f943126e6 Must pass by reference. 2013-03-31 15:36:34 -07:00
JoelKatz
fbe8823439 Don't blow up if we have a ledger in the ledger DB but not its root map node in the node DB. 2013-03-30 19:53:34 -07:00
JoelKatz
433a336269 Change some fields in the way estimated close times are presented in JSON. 2013-03-22 08:09:48 -07:00
JoelKatz
ce1e1a5bca Don't let fetches squeeze memory on tiny and small builds. 2013-03-20 00:02:52 -07:00
JoelKatz
00913f838f Fix the 'getAccountHash() == mAccountStateMap->getHash()' bug.
'getNeededHashes' can do the wrong thing (report no needed hashes when we
need them all) if we have a ledger's root node but not the root node of the
tree we're querying.
2013-03-17 22:04:34 -07:00
JoelKatz
47ffc5ff12 Some extra debug logging. 2013-03-16 16:41:13 -07:00
JoelKatz
b9456c8fd7 Except when interacting with boost, use std::function and std::bind
when C++11 is available. See: http://stackoverflow.com/questions/14617835
2013-03-16 03:27:43 -07:00
JoelKatz
5f35afc645 This makes more sense. 2013-03-15 02:38:47 -07:00
JoelKatz
64b2a50e8b Temporarily disable dropCache. 2013-03-15 02:25:59 -07:00
JoelKatz
4322403987 Fix unrouted log. 2013-03-15 02:22:54 -07:00
JoelKatz
2248d92a33 Wrap all peer socket accesses in a strand. This is needed to prevent a fatal
race condition in composed intermediary functions.

A few ledger acquire cleanups.
2013-03-12 16:53:30 -07:00
JoelKatz
c85fc7ef64 Bug that crashed client machine. 2013-03-12 15:57:25 -07:00
JoelKatz
dd387b840a Fix count 2013-03-12 15:29:56 -07:00
JoelKatz
e9a02882f1 Don't let ledger fetching go too fast. 2013-03-12 15:17:26 -07:00
Arthur Britto
04a825298e Clean up and secure subscribe books. 2013-03-12 12:53:06 -07:00
Arthur Britto
ae26c6cc59 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-12 11:41:14 -07:00
JoelKatz
c9161b9b1c waitWrite could cause a deadlock. 2013-03-12 11:30:23 -07:00
JoelKatz
1d4cb0c943 Missing validity check. 2013-03-12 09:48:35 -07:00
JoelKatz
80233579f1 Add a function to check if a currency/issuer/currency/issuer set
defines a valid order book.
2013-03-12 09:42:38 -07:00
JoelKatz
52fb8e1f82 Typo. 2013-03-11 23:33:02 -07:00
JoelKatz
1cd65213d8 Simplify and fix possible bugs in the way accepted ledgers are written
to SQL. Set up for ledger scraping.
2013-03-11 23:20:26 -07:00
Arthur Britto
1aef1ca4f6 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-11 18:59:36 -07:00
Arthur Britto
2e7a2fd696 Canonicalize API protocol. 2013-03-11 18:59:29 -07:00
JoelKatz
566b36715d Simplify the ledger acquire logic. This fixes a few bugs related to it including
the issue if you remove the ledger DB.
2013-03-11 17:57:12 -07:00
JoelKatz
23fa7ab67e Don't try to print ledger sequences using %d 2013-03-11 02:18:32 -07:00
Arthur Britto
1479590af1 Rework RPC ledger. 2013-03-10 15:18:35 -07:00
JoelKatz
8ed0705fa6 Typo. 2013-03-06 20:57:59 -08:00
JoelKatz
ff8dbcf5ff Remove pending save logic. Replace with job count logic.
Prioritize newer ledgers over clients.
2013-03-06 20:57:11 -08:00
JoelKatz
e080ddb0fc Got you! 2013-03-06 20:35:35 -08:00
JoelKatz
813e75bdb5 Fix standalone mode. 2013-03-06 17:04:56 -08:00
JoelKatz
a6a042c509 Typo. 2013-03-06 16:37:48 -08:00
JoelKatz
fde7104aa2 One more. 2013-03-06 16:37:00 -08:00
JoelKatz
ddc5837a49 Fix. 2013-03-06 16:35:39 -08:00
JoelKatz
6a298872cc Dispatch save accepted ledger better. 2013-03-06 16:33:53 -08:00
JoelKatz
d1169ee86d Make sure all load sources are named. 2013-03-04 16:22:09 -08:00
JoelKatz
51db2d2cd7 Reprocess accepted ledgers once. Track metadata, transaction data, and affected accounts.
Process to SQL database and publish from this structure.
Include number of transactions in ledger publish info.
Publish transactions in applied order.
2013-03-04 13:59:53 -08:00
JoelKatz
23569c32aa Don't duplicate transactions in the DB. 2013-03-03 05:03:48 -08:00
JoelKatz
51a85504a8 Startup and shutdown improvements. Performance improvements. 2013-03-03 02:09:19 -08:00
JoelKatz
51ebd75a4a Reset prepared statements after use, not before. 2013-03-01 10:33:38 -08:00
JoelKatz
1167158f64 Reduce I/O needed on startup. 2013-03-01 10:28:50 -08:00
JoelKatz
312e476898 Fix a bug where a cached copy of a txn might not have a reference to the ledger
it was applied in, causing commands like 'tx' not to return metadata.
2013-02-27 18:23:24 -08:00
JoelKatz
923446fb78 Fix 'tx' output format. Begin supporting a binary output format.
This adds support for binary in 'tx' and 'account_tx' commands.
https://ripple.com/wiki/FormatChange
2013-02-25 12:51:06 -08:00