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
JoelKatz
aaedf5116b
Bugfixes.
2012-06-01 16:39:26 -07:00
JoelKatz
9607ea1543
Extra logging.
2012-06-01 16:32:34 -07:00
JoelKatz
9d41104d83
With all this rope lying about, someone might get hung.
...
(Wrong length for SerialializedTransaction.)
2012-06-01 16:25:59 -07:00
JoelKatz
d49b2a6885
Bugfix.
2012-05-31 21:16:08 -07:00
JoelKatz
41f603d224
Bugfix
2012-05-31 21:13:36 -07:00
JoelKatz
2ec46c0dbf
Bugfixes.
2012-05-31 20:55:30 -07:00
JoelKatz
a4abe5a9dc
Don't try to acquire an *empty* transaction set.
2012-05-31 20:52:52 -07:00
JoelKatz
36f8c1435e
Debug
2012-05-31 20:35:00 -07:00
JoelKatz
79a179a0f2
Don't take our initial position until the wobble time is over.
2012-05-31 18:22:18 -07:00
JoelKatz
f8219061b6
Use simple logging system to timestamp/filter log messages.
2012-05-31 17:00:15 -07:00
JoelKatz
d52b87fc58
Debug and bugfixes.
2012-05-31 01:12:51 -07:00
JoelKatz
a2be7ab180
Complete ledger consensus logic. Now to test it.
2012-05-30 22:15:20 -07:00
JoelKatz
5bf9005b06
Bugfix and push ledger logic.
2012-05-30 21:26:07 -07:00
JoelKatz
c2b200a74d
In separate thread, rebuild ledger from last closed ledger, applying
...
consensus transactions in canonical order
2012-05-30 18:39:01 -07:00
JoelKatz
70767a3b1a
Dispatch on consensus.
2012-05-30 17:08:50 -07:00
JoelKatz
6123e3886a
Refactor LedgerConsensus code. Add new LC work.
...
Properly sequence LC states
Properly handle wobble time.
Complete LC sequence correctly and exit it.
2012-05-29 18:02:17 -07:00
JoelKatz
c74dad5478
Updates.
2012-05-29 12:35:23 -07:00
JoelKatz
32534e8d0d
More ledger consensus work.
2012-05-28 17:25:25 -07:00
JoelKatz
b144fa48b5
More ledger consensus work. IHAVE broadcast logic.
2012-05-28 13:06:45 -07:00
JoelKatz
1ab267876b
Some additional comments.
2012-05-28 01:34:50 -07:00
JoelKatz
7e8ebcc3d9
Consensus timing and avalanche.
...
Transaction position change.
Track transaction data for all disputed transactions.
Update our set as our 'vote' changes.
2012-05-28 01:31:35 -07:00
JoelKatz
d9e5b7e109
Handle a few odd cases, including the case where a peer proposes a ledger
...
that is internally inconsistent.
2012-05-26 20:04:40 -07:00
JoelKatz
2866cec281
Finish addDisputedTransaction and peerPosition.
2012-05-26 14:21:13 -07:00
JoelKatz
9fb8674710
More ledger consensus work. Update votes correctly when we finish
...
synching a transaction set.
2012-05-26 12:11:45 -07:00
JoelKatz
07e353d8a2
More ledger consensus work.
2012-05-23 17:26:45 -07:00