JoelKatz
9e8a7d4ced
Remove all the old txn meta code. It's not obsolete
2012-10-16 13:55:57 -07:00
JoelKatz
1f89317c07
Fix JSON for arrays.
2012-10-16 13:55:34 -07:00
JoelKatz
7e29b4fae7
Some additional helper functions.
2012-10-16 13:07:22 -07:00
JoelKatz
2de864d23b
Updates.
2012-10-16 11:49:34 -07:00
JoelKatz
6f23c44152
Fix a few cases where SHAMap nodes don't get correctly written.
...
When we fetch a node from the database, we artificially mark it "old" so modifications are saved.
New nodes are added to the dirty node tray if it is armed.
2012-10-16 11:48:49 -07:00
JoelKatz
68b8360cda
Hashes for transaction nodes with metadata were miscomputed. This may cause broken nodes
...
not to stay synched with working nodes.
2012-10-16 11:47:42 -07:00
JoelKatz
2ebf8a7968
Cleanup.
2012-10-16 11:47:01 -07:00
JoelKatz
09f3b5db54
Rework how dirty SHAMap nodes are flushed to disk. The existing code had a bug that could cause
...
nodes to be modified before they were written to disk.
2012-10-16 11:16:07 -07:00
JoelKatz
afe016415e
Ensure all dirty SHA nodes are fully written before writing the ledger header.
...
To avoid a performance penalty, write accountstate nodes while we're waiting.
2012-10-16 06:53:06 -07:00
JoelKatz
599ebe3c61
Write ledger dirty SHA nodes before ledger header.
2012-10-16 06:43:34 -07:00
JoelKatz
83cfc7a3df
Make sure we clear the 'need network ledger' flag if we jump ledgers during consensus.
2012-10-16 06:10:13 -07:00
JoelKatz
21c4c22eda
Add functions to check and clear the "need network ledger" flag.
2012-10-16 06:09:43 -07:00
JoelKatz
81e30be001
Include whether we're waiting for a network ledger in the server_info output.
2012-10-16 06:09:26 -07:00
JoelKatz
c05e42ccb7
Change "deferred proposal" to "stored". Complete move to NetworkOPs.
2012-10-16 05:28:41 -07:00
JoelKatz
94d607def0
Move deferred proposals to network ops. Include the last closed ledger in proposals. Call handleLCL
...
even if we happen to jump our notion of the network's last closed ledger to the ledger we had as our
locally last-closed ledger.
2012-10-16 05:27:48 -07:00
JoelKatz
84ef7dff0f
Support for the new transaction meta types.
2012-10-16 05:05:36 -07:00
JoelKatz
1f58c4326d
In consensus process, if we don't have the LCL, only *de*mote to tracking.
...
Don't promote to tracking.
2012-10-16 05:05:15 -07:00
JoelKatz
b6dc333b68
Add a 'sort' function to an STArray. They can be used in cases where
...
order is significant or where they're sorted.
2012-10-16 03:52:46 -07:00
Arthur Britto
9c31daad08
Disallow negative amounts for CreditSet.
2012-10-15 20:36:14 -07:00
Arthur Britto
b0c1062591
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-15 17:11:26 -07:00
Arthur Britto
e513ef177f
WS: Fix status of broadcasted transactions.
2012-10-15 17:11:13 -07:00
JoelKatz
36f6c4dac0
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-15 15:00:00 -07:00
JoelKatz
d3dfc5af1a
Remove extraneous header file.
2012-10-15 14:59:46 -07:00
Arthur Britto
0cf9fdb4d8
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-15 14:23:05 -07:00
Arthur Britto
3d97ccc34f
RPC add inLedger to account_tx.
2012-10-15 14:22:55 -07:00
Arthur Britto
42d7813046
Put json time as unix time.
2012-10-15 14:22:07 -07:00
JoelKatz
de71645351
Log whether we actually couldn't find the ledger or if the sequence was incorrect.
2012-10-15 10:35:57 -07:00
JoelKatz
194f61d4e2
Hopefully a fix for the "stuck in neverending consensus" bug Jed reported.
2012-10-15 08:56:25 -07:00
JoelKatz
b9ec8e2add
Slight logging improvements.
2012-10-15 08:56:15 -07:00
JoelKatz
debe1b4741
Check ledger sanity.
2012-10-15 04:13:26 -07:00
JoelKatz
a145bf2d36
Extra sanity checks.
2012-10-15 04:13:15 -07:00
JoelKatz
862b2c5aef
Cleanups.
2012-10-15 04:12:48 -07:00
JoelKatz
863b082e32
Move the logging a bit earlier.
2012-10-15 04:12:34 -07:00
JoelKatz
bc040e0b91
Root node is not always an inner node.
2012-10-15 04:12:20 -07:00
JoelKatz
83a2b0d884
Cleanups. Extra asserts.
2012-10-15 03:50:14 -07:00
JoelKatz
65395ea971
Add some sanity checks.
2012-10-15 03:48:45 -07:00
JoelKatz
1214be1f22
Remove some chatty debug.
2012-10-15 03:48:31 -07:00
JoelKatz
33017a35a8
Extra sanity checks.
2012-10-15 03:47:23 -07:00
JoelKatz
0309105948
Cleanup
2012-10-15 03:13:51 -07:00
JoelKatz
633cf60836
Remove unneeded debug
2012-10-15 03:13:42 -07:00
JoelKatz
357245b595
Fix a bug that would cause a write spinout.
2012-10-15 03:08:42 -07:00
JoelKatz
d273ac6e76
Fix a bug that could prevent a close time consensus from being recognized.
2012-10-15 03:04:56 -07:00
JoelKatz
db0d9447cd
Write out objects sooner so we're more likely to have them after a crash.
2012-10-15 00:46:08 -07:00
JoelKatz
3872cbbca0
Fix the dirty node tracking logic
2012-10-15 00:45:57 -07:00
JoelKatz
353bf532e4
Remove two FIXME's that have been fied.
2012-10-15 00:45:10 -07:00
JoelKatz
1c9573a972
Clean up the writer thread.
2012-10-14 23:26:32 -07:00
JoelKatz
ce24ae1ef9
Don't store the temp root node (that represents an empty map) to the db.
...
Improve fetchRoot logging.
2012-10-14 23:25:46 -07:00
JoelKatz
1005313ed8
Make sure to write the root node of the genesis ledger to the database.
2012-10-14 23:25:15 -07:00
JoelKatz
9e84bb38a8
Add new 'isEmpty' function to find empty inner nodes.
2012-10-14 23:14:17 -07:00
JoelKatz
de5321e51c
Cleanups.
2012-10-14 23:03:23 -07:00