Commit Graph

2336 Commits

Author SHA1 Message Date
JoelKatz
92fbff0efc If a new transaction is discovered in the consensus process and we have not
relayed it recently, do so. This is not the perfect solution, it would be
better to relay it when we accept the new ledger, relaying only if it fits
in the consensus ledger.
2012-09-17 00:54:48 -07:00
JoelKatz
89518e23cc Fix two more race conditions involving us taking our position late.
Remove an incorrect comment.
2012-09-17 00:38:47 -07:00
JoelKatz
53107d2325 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-09-16 20:59:27 -07:00
JoelKatz
7744f7c111 Cleanups and improved comments.
Fix a race condition if a peer ledger comes in before we take our initial position.
2012-09-16 20:58:38 -07:00
Arthur Britto
6865e575cb Build testing newcoind.cfg as needed. 2012-09-15 15:45:33 -07:00
Arthur Britto
f45886cc6d Cosmetic (tabbing). 2012-09-15 14:56:15 -07:00
Arthur Britto
3a9c82c1cc Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-09-15 14:37:49 -07:00
Arthur Britto
b8f2b6c0dc Initial check in of testing scripts. 2012-09-15 14:37:21 -07:00
JoelKatz
d147b61530 The ledger accept process calls functions like ConnectionPool::relayMessage
and so must be called in the main I/O thread, at least for now.
2012-09-14 10:06:23 -07:00
JoelKatz
22f9a1a258 Don't let bow outs count as agreeing/disagreeing for consensus determination 2012-09-14 09:58:51 -07:00
JoelKatz
b69a0b14bf Style change. 2012-09-14 08:42:39 -07:00
JoelKatz
3a786b911c Don't crash if we can't find the ledger for the generator 2012-09-14 08:42:21 -07:00
JoelKatz
faece188f4 Belt and suspenders. Fix on both sides. 2012-09-14 08:41:59 -07:00
JoelKatz
c9a44e4a1a We have to make sure someone holds a strong pointer to the acquiring
set when we move it from acquring to acquired.
2012-09-14 08:40:55 -07:00
JoelKatz
72b2478a7b Rename SHAMap states. 2012-09-14 07:08:27 -07:00
JoelKatz
72f9417149 Add an assert. 2012-09-14 07:08:16 -07:00
JoelKatz
a4f41edf7a Cleanup shared polymorphic downcast. 2012-09-14 07:08:01 -07:00
JoelKatz
205f5e4a63 Call to get the auxiliary I/O service 2012-09-14 07:07:44 -07:00
JoelKatz
f7e68cfc51 Fix SHAMap state when tx sync completes. 2012-09-13 20:49:48 -07:00
JoelKatz
bbddef8572 Throw on missing node in SHAMapDiff code. 2012-09-13 20:49:36 -07:00
JoelKatz
0efe8b4892 Cleanups. 2012-09-13 20:41:25 -07:00
JoelKatz
b35f87564a Fix a bug triggered by a acquiring a transaction set after having bowed out
of the consensus process.
2012-09-13 19:32:44 -07:00
JoelKatz
1faa8ccda6 Some less confusing names. 2012-09-13 19:26:40 -07:00
JoelKatz
58befb406e Typo. 2012-09-13 15:37:48 -07:00
JoelKatz
6c016039c2 Get rid of all "const SHAMap::pointer&" -> SHAMap::ref 2012-09-13 15:36:56 -07:00
JoelKatz
7c7a4bd3e0 Make a field for transaction metadata. 2012-09-13 15:32:30 -07:00
JoelKatz
f8e107a4be Extra debug. 2012-09-13 15:30:21 -07:00
JoelKatz
7ba143b4df Revert "Cleanup transaction set sync map creation."
This reverts commit de8288d4d5.
2012-09-13 15:29:47 -07:00
JoelKatz
ec2dded961 Revert "Cleanup transaction set sync map creation."
This reverts commit de8288d4d5.
2012-09-13 15:23:55 -07:00
JoelKatz
de8288d4d5 Cleanup transaction set sync map creation.
Remove a passthrough to NetworkOPs that doesn't make much sense.
2012-09-13 15:22:36 -07:00
JoelKatz
9cdcf50c07 Mark a caution with this code.
Cleanups.
2012-09-13 14:08:41 -07:00
JoelKatz
499d9b5536 Log metadata in debug builds. 2012-09-13 13:12:21 -07:00
JoelKatz
e6411a6afc Ensure we don't get json/value.h without json/writer.h 2012-09-13 13:11:34 -07:00
JoelKatz
4831588c33 Clean up JSON logging. 2012-09-13 13:11:29 -07:00
JoelKatz
093ab09557 An empty node is legal. For example, a created node. 2012-09-13 13:08:33 -07:00
JoelKatz
38dd9f3f88 Add metadata JSON to set JSON.
Fix a bug where we try to access the existing node when we're creating a node.
Extra asserts to catch original node mishandlig.
2012-09-13 12:29:06 -07:00
JoelKatz
aa35b33b19 Must calculated metadata before applying LES> 2012-09-13 01:39:14 -07:00
JoelKatz
db85d87ff2 Must modify nodes. 2012-09-13 01:39:03 -07:00
JoelKatz
50190b2c35 Fix threading bug. 2012-09-13 01:31:51 -07:00
JoelKatz
66338e4a0a Add metadata to some JSON outputs. 2012-09-13 01:29:27 -07:00
JoelKatz
4e957a5efd This version is incompatible with the previous versions 2012-09-13 01:29:14 -07:00
JoelKatz
34dcb99370 New functions to pass tree node types to callers. 2012-09-13 01:29:04 -07:00
JoelKatz
953f0ad63f Don't charge for transactions twice. Have the "old" getTransaction handle metadata sanely.
Fix calcRawMeta to fit the new model where an LES holds a reference to its ledger
Don't put metadata in open ledger txn sets to avoid breaking the proposal mechanism.
2012-09-13 01:01:40 -07:00
JoelKatz
d2336e3eea Ledger functions to handle transaction metadata. 2012-09-12 18:40:16 -07:00
JoelKatz
1ba5b02f14 Don't track metadata for directory nodes. 2012-09-12 09:18:10 -07:00
JoelKatz
30cd0e197d Remove dead code that's in my way. 2012-09-12 09:18:03 -07:00
JoelKatz
ca6e9cf764 Fix a case where we can get stuck in the wrong consensus window and have to
wait for it to timeout.
2012-09-11 21:36:23 -07:00
JoelKatz
b5da6c22a5 Missing piece for TX metadata. 2012-09-11 15:35:23 -07:00
JoelKatz
ca1436ac25 Remove some dead code that was in my way. 2012-09-11 14:51:13 -07:00
JoelKatz
81cd4cf820 Start of code to track network state, track overwhelmed nodes, and adjust
transaction fees.
2012-09-11 11:56:41 -07:00