Commit Graph

1060 Commits

Author SHA1 Message Date
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
0c4c27880d Adjust timings for wobble interval. 2012-05-29 18:01:43 -07:00
JoelKatz
c750c4af38 Add a function to make the "sacrificial" ledger that runs as our
current ledger during consensus building time. We just use it to
decide whether to process/forward transactions. We re-apply them when we
have a new last-closed ledger anyway.
2012-05-29 18:00:57 -07:00
JoelKatz
c74dad5478 Updates. 2012-05-29 12:35:23 -07:00
JoelKatz
e84c3ba714 Add some additional timing parameters. 2012-05-29 12:35:10 -07:00
JoelKatz
411f65b24b Remove some dead messages. 2012-05-29 12:34:46 -07:00
JoelKatz
01f16914ce Cleanups. 2012-05-28 23:49:43 -07:00
JoelKatz
06535a1a43 Updates. 2012-05-28 17:25:51 -07:00
JoelKatz
32534e8d0d More ledger consensus work. 2012-05-28 17:25:25 -07:00
JoelKatz
62b353de27 Update. 2012-05-28 14:29:05 -07:00
JoelKatz
cd72210ad7 Comment out some checks. 2012-05-28 14:15:43 -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
b144fa48b5 More ledger consensus work. IHAVE broadcast logic. 2012-05-28 13:06:45 -07:00
JoelKatz
b7d836a5da Revert "More LedgerAcquire work. Broadcast IHAVEs for tx sets."
This reverts commit 240386931c.

Erroneous commit.
2012-05-28 13:03:21 -07:00
JoelKatz
240386931c More LedgerAcquire work. Broadcast IHAVEs for tx sets. 2012-05-28 13:02:43 -07:00
JoelKatz
69d07f3afd One more pass by ref. 2012-05-28 05:35:59 -07:00
JoelKatz
574f86bb4d Small cleanups. 2012-05-28 05:05:29 -07:00
JoelKatz
e4a7c7677b Pass by ref. 2012-05-28 04:39:52 -07:00
JoelKatz
735259b2eb Pass by ref 2012-05-28 04:28:48 -07:00
JoelKatz
dc79749d15 Const-correct 2012-05-28 04:28:37 -07:00
JoelKatz
3047f77160 Be consistent in how we include Boost header files. 2012-05-28 04:28:22 -07:00
JoelKatz
f4d458f77d Trap attempts to duplicate unduplicatable instances. 2012-05-28 03:40:44 -07:00
JoelKatz
e6e72a7b9a Cleanups. 2012-05-28 03:35:52 -07:00
JoelKatz
2e4b92b680 Remove dead code. 2012-05-28 03:35:19 -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
51816f1e56 Simplifications. 2012-05-27 20:09:49 -07:00
JoelKatz
02fd3e2f7a Signed get/set functions for native currency values. 2012-05-27 18:29:55 -07:00
JoelKatz
959fa8e298 Avoid the getValue confusion. Use getNValue for native, getMantissa otherwise 2012-05-27 18:23:33 -07:00
JoelKatz
faa3e00aa8 Don't use getValue for isZero 2012-05-27 18:22:08 -07:00
JoelKatz
5bf8189aca Use getJson instead of getValue 2012-05-27 18:20:52 -07:00
Arthur Britto
eab7a2d93a Merge branch 'pay'
Conflicts:
	src/NetworkOPs.cpp
2012-05-27 17:56:45 -07:00
Arthur Britto
d5e918e85b Work toward RPC account_lines. 2012-05-27 17:44:26 -07:00
Arthur Britto
af5c25a24d Cosmetic changes. 2012-05-27 17:43:46 -07:00
Arthur Britto
561e87c050 Use ^ for decimal in RPC syntax for XNS. 2012-05-27 17:42:10 -07:00
Arthur Britto
bca01a396f Really fix sql for saveAcceptedLedger(). 2012-05-27 17:41:11 -07:00
JoelKatz
64f903f21d Finish the rewrite. 2012-05-27 16:40:25 -07:00
JoelKatz
d67f06d456 More work on the new amount class. 2012-05-27 16:10:08 -07:00
JoelKatz
47fefdc26c About half of the rework to support signed floating point amounts. 2012-05-27 15:54:38 -07:00
JoelKatz
3fcdf31096 Bugfix. 2012-05-27 15:54:06 -07:00
Arthur Britto
428f6d371f Fix saveAcceptedLedger. 2012-05-27 14:01:33 -07:00
JoelKatz
9ef47a2678 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-05-26 20:49:13 -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
Arthur Britto
94a23a011e Merge branch 'pay' 2012-05-26 17:26:23 -07:00
Arthur Britto
d54c1acdfd Fix dir index creation and make currency specification optional for credit_set. 2012-05-26 17:25:05 -07:00
JoelKatz
ef516698f2 Whitespace only. 2012-05-26 15:35:05 -07:00
JoelKatz
d442534c70 Cleanups. 2012-05-26 15:11:10 -07:00
JoelKatz
2866cec281 Finish addDisputedTransaction and peerPosition. 2012-05-26 14:21:13 -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
9fb8674710 More ledger consensus work. Update votes correctly when we finish
synching a transaction set.
2012-05-26 12:11:45 -07:00