Commit Graph

2101 Commits

Author SHA1 Message Date
JoelKatz
9c08dc00ae Mark a huge number of ugly functions deprecated. You no longer need to use the special
'IField' functions. You can treat a ledger entry like any STObject.
2012-09-26 15:09:38 -07:00
JoelKatz
ad4952b958 Cleanups. 2012-09-26 15:09:27 -07:00
JoelKatz
d76f61a648 Cleanups. 2012-09-26 15:09:11 -07:00
JoelKatz
16cadaf43f Special types of high-level objects. 2012-09-26 15:09:00 -07:00
JoelKatz
632d506234 Make this compile. 2012-09-26 15:08:43 -07:00
Arthur Britto
cae6ea1c33 Remove useless NetworkOPs::getClosedLedger. 2012-09-26 15:03:19 -07:00
Arthur Britto
be54bf070c Make getLedgerByHash(0) return the current ledger. 2012-09-26 15:02:17 -07:00
Arthur Britto
f3f116117a Make genesis ledger 1. 2012-09-26 15:01:21 -07:00
JoelKatz
ae8f5a154d Merge branch 'master' of github.com:jedmccaleb/NewCoin into serialize 2012-09-26 14:22:38 -07:00
JoelKatz
c10ff5bac9 More serialization rework. 2012-09-26 14:22:04 -07:00
Arthur Britto
4cec959e78 WS add command ledger_closed and revise ledger_current. 2012-09-26 14:08:10 -07:00
Arthur Britto
73e4a73f95 getLedgerID to NetworkOPs. 2012-09-26 14:07:07 -07:00
JoelKatz
ba77d3e438 Make it compile. 2012-09-26 12:47:55 -07:00
JoelKatz
6d58bd52b1 Missing from SField::ref commit. 2012-09-26 12:47:42 -07:00
JoelKatz
0c0069f77c Small bugfixes. 2012-09-26 12:47:28 -07:00
JoelKatz
19b9facdef name -> fName 2012-09-26 12:47:17 -07:00
JoelKatz
96eef8388f Remove a line of dead code. Add two convenience functions. 2012-09-26 12:46:53 -07:00
JoelKatz
fbb0baaca0 Cleanups. 2012-09-26 00:28:58 -07:00
JoelKatz
e0587a44b8 More work on new serializer code. 2012-09-25 22:47:59 -07:00
JoelKatz
8a5a9e0925 Small fixes. 2012-09-25 22:47:40 -07:00
JoelKatz
0cde836c0c Merge branch 'master' of github.com:jedmccaleb/NewCoin into serialize 2012-09-25 19:27:25 -07:00
JoelKatz
2446db0bbe More serialization work. 2012-09-25 19:27:09 -07:00
Arthur Britto
ab4458ccb0 WS: add ledger_current command. 2012-09-25 18:30:49 -07:00
Arthur Britto
9336499950 Cosmetic. 2012-09-25 18:30:27 -07:00
JoelKatz
c757d363af Parts of the new serialization code. Does not compile yet. 2012-09-25 16:48:24 -07:00
JoelKatz
b653b7d1c8 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-09-24 23:26:13 -07:00
JoelKatz
6c17c0270b Remove dead code.
Use the protocol file to generate the STI_* constants.
2012-09-24 23:25:27 -07:00
Arthur Britto
195cd9eade Report IP when do an RPC call. 2012-09-24 20:07:31 -07:00
Arthur Britto
521f47c330 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-09-24 19:51:02 -07:00
Arthur Britto
8cc760ad8d Clean up offer processing. 2012-09-24 19:50:57 -07:00
JoelKatz
19ee517d9f Neaten this up a bit. 2012-09-24 16:28:08 -07:00
JoelKatz
8d633bf065 Remove a FIXME since it's fixed. 2012-09-24 16:23:09 -07:00
JoelKatz
173b6ce558 More changes to the new serialization format that don't break compatibility. 2012-09-24 16:21:40 -07:00
JoelKatz
9432d35f14 You don't need to customize operator=(const&) since the base class does it for you. 2012-09-24 14:45:44 -07:00
JoelKatz
7ef8001505 Audit all construction cases, fix broken ones. 2012-09-24 14:36:48 -07:00
JoelKatz
3c5ea7020f Start of STAmount issuer fixes. 2012-09-24 14:30:24 -07:00
JoelKatz
8f88575b8e Low-level serializer functions for new type/name field. 2012-09-24 13:19:28 -07:00
JoelKatz
a4070de73e Some work on the new binary formats that doesn't break current code. 2012-09-24 13:04:24 -07:00
JoelKatz
02b3bcb089 Put the threading in the correct owner node for unthreaded nodes.
Add some additional debug to threading.
2012-09-20 00:15:48 -07:00
JoelKatz
8c354f46b7 Fix the bug Jed reported. 2012-09-19 23:41:06 -07:00
JoelKatz
73c5b6addb There's a proper way to workaround the silliness, io_service::work 2012-09-18 13:21:07 -07:00
JoelKatz
77c06a1ca0 Allow SNTP in standalone mode. It was partially disabled before. 2012-09-18 12:24:09 -07:00
JoelKatz
d28bb9f771 Ugly workaround for Boost I/O service weirdness. I/O service unconditionally
terminates if it has no work to do and cannot be used to wait around for
'post' calls.
2012-09-18 12:23:14 -07:00
Arthur Britto
aa8ee3a165 Merge branch 'ut' 2012-09-17 15:46:12 -07:00
Arthur Britto
ca14e129bb Cosmetic. 2012-09-17 12:48:30 -07:00
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
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
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