Commit Graph

64 Commits

Author SHA1 Message Date
JoelKatz
07d16749ae Make sure we aren't validating when not in full. 2012-06-18 19:19:21 -07:00
JoelKatz
e458a2e3c7 Use validations. 2012-06-18 17:01:54 -07:00
JoelKatz
2ff19d65e8 Don't go to full (validating) if we don't have a validation seed. 2012-06-18 09:52:06 -07:00
JoelKatz
8f88030219 Log whether we processed a peer ledger proposal or not. 2012-06-18 09:23:01 -07:00
Arthur Britto
f9637e36bf Get rid of redunant SQL_FOREACH declarations. 2012-06-14 18:42:46 -07:00
Arthur Britto
70970d8042 Fix SQL_FOREACH. 2012-06-14 18:33:31 -07:00
Arthur Britto
ab9cc7f70c Check UNL before processing validation. 2012-06-13 16:53:09 -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
20499106f0 Bugfixes. 2012-06-09 18:04:44 -07:00
JoelKatz
e2288acfd1 More work on account_tx command. 2012-06-09 17:59:24 -07:00
JoelKatz
380902536f Framework for account_tx command. 2012-06-09 16:58:04 -07:00
JoelKatz
2f7beb970f Updates to support the new HaveTXSet message. 2012-06-07 12:26:12 -07:00
Arthur Britto
3945749b64 Implement NetworkOPs stubs for nickname_set. 2012-06-05 13:06:46 -07:00
JoelKatz
2206ff3be6 Get rid of hash_SMN and instead extend boost::hash.
This makes the TaggedCache code cleaner.
2012-06-04 06:01:11 -07:00
JoelKatz
833f402064 Use new ledger constructors. Go back to tracking if we don't have the LCL. 2012-06-03 19:42:13 -07:00
JoelKatz
75ad545916 Finish the wobble rework. 2012-06-03 15:30:39 -07:00
JoelKatz
8701337af7 Work on the wobble logic. 2012-06-02 16:19:37 -07:00
JoelKatz
c32e18d2ff use add, not getTransaction 2012-06-01 15:41:13 -07:00
JoelKatz
a6e738ccfd Add detailed comments to explain a missing bit of code. 2012-06-01 13:55:45 -07:00
JoelKatz
4d2e5acf47 For now, ratchet up network states quickly 2012-06-01 13:54:16 -07:00
JoelKatz
ba6a14b97e Udpates. 2012-06-01 13:51:14 -07:00
Arthur Britto
545ede1823 Merge branch 'pay'
Conflicts:
	src/NetworkOPs.cpp
	src/SHAMap.cpp
2012-06-01 01:23:19 -07:00
JoelKatz
2ec46c0dbf Bugfixes. 2012-05-31 20:55:30 -07:00
JoelKatz
7ce4e28dac Track network state changes. 2012-05-31 20:34:40 -07:00
Arthur Britto
a0009f7c6f Rework Ledger index calculation. 2012-05-31 20:26:14 -07:00
JoelKatz
f1db232f1f Misleading log message. 2012-05-31 18:29: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
Arthur Britto
0faa7ea071 Lots of debugging. 2012-05-30 13:35:58 -07:00
Arthur Britto
a283d9df30 Merge branch 'pay'
Conflicts:
	src/NetworkOPs.cpp
2012-05-30 00:51:48 -07:00
Arthur Britto
68c8434a2b Rework RPCServer to go through NetworkOPs. 2012-05-30 00:41:10 -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
06535a1a43 Updates. 2012-05-28 17:25:51 -07:00
JoelKatz
ae9db460ab A bit of a painful PackedMessage change, but this simplifies a lot of code.
It's worth it to take the pain now.
2012-05-28 13:07:19 -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
Arthur Britto
eab7a2d93a Merge branch 'pay'
Conflicts:
	src/NetworkOPs.cpp
2012-05-27 17:56:45 -07:00
Arthur Britto
af5c25a24d Cosmetic changes. 2012-05-27 17:43:46 -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
5c4d3743a4 Differentiate the two beginConsensus cases. (Ledger close or network
showing consensus traffic.)
2012-05-26 14:20:46 -07:00
JoelKatz
9b9177f15e Ledger consensus stuff. 2012-05-23 15:18:34 -07:00
JoelKatz
14d9efd1bb Implement two pass through functions to LedgerConsensus. 2012-05-22 22:07:04 -07:00
JoelKatz
00077bff16 Missing stubs. 2012-05-22 07:56:53 -07:00
JoelKatz
441a27dffd Ledger consensus work. 2012-05-22 02:35:47 -07:00
JoelKatz
9a4862a5d9 Commit some ledger close/consensus work. 2012-05-21 06:05:32 -07:00
JoelKatz
e47fb22087 Minimize differences between my working code and the main repo to avoid conficts:
Consensus startup.
Logic to create consensus structure, change state transitions.
Fix bugs in switchLastClosedLedger
Protocol changes.
2012-05-19 05:43:41 -07:00
JoelKatz
7cfe501559 Bugfix. 2012-05-15 20:29:54 -07:00
Arthur Britto
66a77d2937 Rename trans engine never prefix to ten. 2012-05-13 11:59:02 -07:00
JoelKatz
eb5cc1617e Fix a spinout where we set the timer for shorter and shorter times. 2012-05-10 16:08:09 -07:00
JoelKatz
6f3edf951d Use shared pointers when building protocol messages to fix leaks. 2012-05-09 17:49:36 -07:00