Commit Graph

81 Commits

Author SHA1 Message Date
JoelKatz
94bc059f87 Fix some mishandling of genesis block close timing. 2012-06-20 13:40:10 -07:00
JoelKatz
58dcc8b9c1 Don't use stale validiations. 2012-06-20 13:26:32 -07:00
JoelKatz
7e35a793aa Fix. 2012-06-20 04:51:45 -07:00
JoelKatz
0af5d379c2 Fix set:
1) Create validation structure even if not proposing (but if validating)
2) Fix hashes in status change messages, do it only one way
3) Don't spin right at wobble time.
4) Report accept status change on new last-closed ledger, not new open ledger.
5) Make sure validation count is correct even if we first encounter a ledger on ourselves (not a peer)
6) At end of consensus, assume nodes cycled (until they report otherwise). By doing nothing,
we effectively assumed they didn't.
7) Miscellaneous cleanups and fixes.
2012-06-20 04:23:29 -07:00
JoelKatz
171b5420d0 Fix some bugs in previous commit. 2012-06-20 02:20:31 -07:00
JoelKatz
da3720baa9 Bugfixes. 2012-06-20 02:18:03 -07:00
JoelKatz
75f85ae519 Begin the code to allow a node to enter the consensus process even if it's not proposing and
even if it's not validating. This also fixes the bug Arthur reported.
2012-06-19 16:55:04 -07:00
JoelKatz
117077a4a5 Change 'eraseInc' to 'erase'. 2012-06-19 04:59:57 -07:00
JoelKatz
409340e921 Cleanup. 2012-06-18 22:56:02 -07:00
JoelKatz
718d078d48 Fix the timing of adding accepted ledgers. 2012-06-18 22:55:07 -07:00
JoelKatz
4afa11a6a6 Reduce log chattiness. 2012-06-18 22:22:47 -07:00
JoelKatz
ea837ff819 Clean up some logging that was confusing. 2012-06-18 21:12:35 -07:00
JoelKatz
149ad2a9ec Add our own validation as a trusted validation. 2012-06-18 16:58:50 -07:00
JoelKatz
3ed23d6e20 Fix. 2012-06-18 15:34:46 -07:00
JoelKatz
6f5feeccdc Suppress a meaningless warning. 2012-06-18 15:31:59 -07:00
JoelKatz
599fc228af Redundant log. 2012-06-18 13:12:04 -07:00
JoelKatz
1b7d400c0e Remove bogus assert. 2012-06-18 13:10:36 -07:00
JoelKatz
62481b8bb5 Spelling. 2012-06-18 13:08:07 -07:00
JoelKatz
bca7975c35 We have a bug in doPasswordSet. 2012-06-18 13:00:09 -07:00
JoelKatz
74ea434435 Bugfixes to consensus:
1) Don't apply to new open ledger in final mode.
2) Re-apply any NO transactions to the new open ledger.
2012-06-18 12:57:43 -07:00
JoelKatz
a0970e705f Consensus bugfixing. 2012-06-18 12:24:15 -07:00
JoelKatz
b3bba6b2b0 Fix chatty debug. 2012-06-18 11:44:40 -07:00
JoelKatz
0e47edbdfe Fix some consensus bugs. 2012-06-18 11:43:34 -07:00
JoelKatz
afd3d39d67 Prettify. 2012-06-18 11:20:21 -07:00
JoelKatz
0dd5e0776d Extra logging. 2012-06-18 11:18:52 -07:00
JoelKatz
95ea30085c Remove chatty debug. 2012-06-18 10:56:55 -07:00
JoelKatz
8f88030219 Log whether we processed a peer ledger proposal or not. 2012-06-18 09:23:01 -07:00
JoelKatz
562d0a658e Tiny bugfix. 2012-06-18 00:44:27 -07:00
Arthur Britto
368e5a0acc Have consensus use the config for validation and use uint160 for peerIDs. 2012-06-13 15:51:30 -07:00
JoelKatz
a37d203d9b Dead line. 2012-06-10 01:05:48 -07:00
JoelKatz
2d49cacd29 Move all SQL operations on ledger close into the ledger code so we can
accept ledgers without having to participate in the consensus process. We'll
need this when we implement "catch up".

Move AcctTx into the same connection as Txn so they can be part of a single
transaction.

Dispatch ledger accept synchronization functions into a detached thread so it
doesn't stall our I/O engine.
2012-06-09 22:01:31 -07:00
JoelKatz
d888cc2da8 Bugfixes. 2012-06-09 18:28:34 -07:00
JoelKatz
8d8d2c6691 Bugfixes. 2012-06-09 18:14:32 -07:00
JoelKatz
40748df505 Store completed transactions in the SQL database, indexed by accounts
affected and ledger seq.
2012-06-09 01:33:13 -07:00
JoelKatz
4b79e7dca8 New canonical transaction order code. Tested and working.
CanonicalTXSet acts much like a map, but sorts the transactions in a simple
order that makes them take fewer passed.
2012-06-08 05:09:23 -07:00
JoelKatz
bda64fac2a Tx set exchange improvements. 2012-06-07 12:25:44 -07:00
JoelKatz
b4e238a2e4 With luck, a fix for the crash. 2012-06-05 15:41:44 -07:00
JoelKatz
79cc39f902 Tweak. 2012-06-05 04:00:25 -07:00
JoelKatz
1c854f9c73 Typo. 2012-06-04 21:52:04 -07:00
JoelKatz
e84c7924a4 Extra debug 2012-06-04 21:37:04 -07:00
JoelKatz
0e7307200e First set of efficiency improvements. 2012-06-04 07:18:57 -07:00
JoelKatz
46f2248ce8 Small fixes. 2012-06-04 00:07:57 -07:00
JoelKatz
49235f96d8 Use new ledger code. 2012-06-03 19:42:58 -07:00
JoelKatz
75ad545916 Finish the wobble rework. 2012-06-03 15:30:39 -07:00
JoelKatz
d35bb54c06 Structures to correctly handle both pre and post close wobble. 2012-06-03 12:24:10 -07:00
JoelKatz
866ead228b Rule out the SHAMap snapShot code as the cause of the duplicate Txn bug.
Add unit test for the SHAMap snapShot code.
Add some extra asserts for attempts to modify immutable maps.
2012-06-02 15:34:49 -07:00
JoelKatz
6ede1a7bef Set closed flag. 2012-06-02 11:08:18 -07:00
JoelKatz
856cd07de7 Final piece of fee fix. 2012-06-01 20:34:37 -07:00
JoelKatz
2372a13041 Bugfix. 2012-06-01 16:49:08 -07:00
JoelKatz
5206d88745 Redundant status change. 2012-06-01 16:44:38 -07:00