JoelKatz
ad0650b7fa
Suppress small offsets. They are likely just due to rounding.
2012-08-05 03:47:15 -07:00
JoelKatz
ed8635c98d
Use the OpenSSL RNG for randomness that needs to be secure.
2012-08-05 00:54:28 -07:00
JoelKatz
3e3d367c98
Finalizations, cleanup, and security improvements.
2012-08-05 00:39:06 -07:00
JoelKatz
6bd7738303
Make time errors a thing of the past.
2012-08-05 00:19:41 -07:00
JoelKatz
ee01b55874
An SNTP client implementation. About 95% complete right now.
2012-08-04 21:33:05 -07:00
JoelKatz
78f415f386
Allow a 20 second clock offset.
2012-08-03 07:02:18 -07:00
JoelKatz
127391b345
Remove assert.
2012-08-03 06:51:32 -07:00
JoelKatz
d98a931b8e
Compute our clock offset. (We don't actually set it yet though.)
2012-08-03 04:40:16 -07:00
JoelKatz
97c1dc73f6
Use the offset.
2012-08-03 04:40:10 -07:00
JoelKatz
0f4800f6bb
Support for a local time to network time offset
2012-08-03 04:39:52 -07:00
JoelKatz
1892e7e00a
Some extra debug.
2012-08-03 04:11:52 -07:00
JoelKatz
5778cb1183
Keep one validation back to avoid a split case when some nodes have sent new validations and some haven't
2012-08-03 04:07:01 -07:00
JoelKatz
6815c7ef98
Cleanups.
2012-08-03 04:06:53 -07:00
JoelKatz
d251a67d17
Fix typos.
2012-08-03 03:47:27 -07:00
JoelKatz
debcea79f0
Don't switch to our own previous ledger.
2012-08-03 03:46:31 -07:00
JoelKatz
9eaf052ee8
Make this compile temporarily.
2012-08-03 03:22:32 -07:00
JoelKatz
7b44fffb27
Make this compile.
2012-08-03 03:22:00 -07:00
JoelKatz
a202eb50d7
Cleanups.
2012-08-03 02:57:55 -07:00
JoelKatz
c5f7656137
Better logging of ledger jumps.
2012-08-03 02:57:36 -07:00
JoelKatz
a089dd5460
Fix a bug in how we count validations.
2012-08-03 02:57:14 -07:00
JoelKatz
0f44af556e
Better reporting of ledger jumps.
2012-08-02 11:51:24 -07:00
JoelKatz
e373a58f5c
Avoid duplicate completion of acquired ledgers.
2012-08-02 11:50:59 -07:00
JoelKatz
67ee822948
Fix the other half of the acquire timeout bug.
2012-08-02 11:36:48 -07:00
JoelKatz
befd7aa108
Fix an infinite timeout scenario with ledger acquisition.
2012-08-02 11:34:11 -07:00
JoelKatz
63576f0709
Fix the crash bug Jed reported.
2012-08-02 11:33:58 -07:00
JoelKatz
a902134133
Don't be blind to validations during the idle time.
2012-08-01 15:00:39 -07:00
JoelKatz
68677270bf
Revert inadvertant commit.
2012-08-01 14:43:19 -07:00
JoelKatz
8772f7ca90
Bump versions to 4 just in case it's a version mismatch.
2012-08-01 14:39:00 -07:00
JoelKatz
ee3562a9a9
Cleanup resynch logic.
2012-08-01 14:38:29 -07:00
JoelKatz
d25fc9c593
Fix endless recursion.
2012-08-01 14:36:39 -07:00
JoelKatz
a17ca0cd4a
Fix the crash bug.
2012-08-01 14:19:13 -07:00
JoelKatz
1213f34d75
More pieces.
2012-07-31 01:01:50 -07:00
JoelKatz
7971151c3b
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-07-30 23:44:31 -07:00
JoelKatz
6e1ffd752d
Well, that was painful. Can't use vectors because they slice. Can't use sets
...
because their contents are immutable. Can't use maps because there's no type
that corresponds to the sort order. Can't use a vector of pointers because
they won't snapshot/copy correctly. No real choice but to use
boost::ptr_vector and create the necessary helper functions for it to work.
2012-07-30 23:42:57 -07:00
jed
935588a208
compile on windows
2012-07-30 09:20:02 -07:00
JoelKatz
a01909fa4b
Some transaction metadata fixes.
2012-07-30 00:29:42 -07:00
JoelKatz
1167ba2cc0
Set up for ledger diffs to populate the metadata.
...
Special case for unfunded offers -- need to know how much was taken before deletion
2012-07-28 14:49:34 -07:00
Arthur Britto
74d0fe000c
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-07-27 14:07:15 -07:00
Arthur Britto
18c8045ba6
Make STPathSet BOOST_FOREACH compatible.
2012-07-27 14:06:45 -07:00
JoelKatz
2e867c37e8
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-07-27 12:56:45 -07:00
JoelKatz
ce2e1cea33
Beging merging transaction metadata code with ledger entry set code.
2012-07-27 12:56:28 -07:00
Arthur Britto
453f72661b
Update RPC, transactions, and ledger for new accountRootNode format.
2012-07-26 19:07:52 -07:00
JoelKatz
ad77087ee5
Remove some unneeded reference count bumps.
2012-07-26 16:38:42 -07:00
JoelKatz
c5995e9e1e
Add some asserts.
2012-07-26 16:35:36 -07:00
JoelKatz
061460b1f8
Fix a case I mishandled.
2012-07-26 16:25:51 -07:00
JoelKatz
487590b938
Fixes.
2012-07-26 16:22:40 -07:00
Arthur Britto
073f3904ec
LedgerEntrySet fixes.
2012-07-26 16:13:39 -07:00
Arthur Britto
8e4ead4b62
Merge branch 'master' of github.com:jedmccaleb/NewCoin
...
Conflicts:
src/LedgerEntrySet.h
2012-07-26 12:51:59 -07:00
Arthur Britto
e2dd0b1fb2
Cosmetic.
2012-07-26 12:50:50 -07:00
JoelKatz
952b0d5ec5
Small cleanup.
2012-07-26 04:10:01 -07:00