Commit Graph

3434 Commits

Author SHA1 Message Date
jed
1f0aa8f56c have remote.js emit all messages 2012-11-29 15:54:59 -08:00
JoelKatz
0fe9f178ef NetworkOPs function to test if we have in our database a specified range of ledger numbers. 2012-11-29 11:46:22 -08:00
JoelKatz
e05a24d055 Document the ledger_history settings. 2012-11-29 11:38:28 -08:00
JoelKatz
6d858ab178 Get rid of "full history". You can now configure how many back ledgers you want to retrieve
on startup. The default is 256. The configuration element is "ledger_history". Valid values are:
0/off/false/none = don't retrieve any history
on/full/yes/-1 = retrieve all history back to the genesis ledger
<number> = retrieve that number of past ledgers
2012-11-29 11:33:33 -08:00
JoelKatz
87ee255251 Save txn metadata into transaction database. 2012-11-29 10:35:53 -08:00
JoelKatz
326250b554 Escape helper. 2012-11-29 10:35:44 -08:00
JoelKatz
dd1ff90351 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-29 10:08:12 -08:00
JoelKatz
a38e7fd496 Metadata versions of the transaction SQL helper functions. 2012-11-29 09:50:34 -08:00
jed
2d6a7f09e4 Merge branch 'notdone' 2012-11-29 09:23:55 -08:00
jed
23f88680d0 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-29 09:23:41 -08:00
jed
92cee7d089 Merge branch 'master' of github.com:jedmccaleb/NewCoin into notdone 2012-11-29 09:23:08 -08:00
jed
32c231ab57 add meta to account_tx 2012-11-29 09:22:44 -08:00
JoelKatz
377747fb2c Helper function. 2012-11-29 09:00:16 -08:00
JoelKatz
2664229017 Fix a compiler warning. 2012-11-29 09:00:05 -08:00
jed
7e834d8a39 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-29 08:48:13 -08:00
JoelKatz
5cf15b3f4e Shutdown cleanly on control-C. 2012-11-28 20:49:07 -08:00
jed
e90a1a404d still working 2012-11-28 16:29:15 -08:00
JoelKatz
72777b6b83 Remove some shared pointers on load monitors. 2012-11-28 15:53:07 -08:00
JoelKatz
8ba70c73f6 Make some boost::format objects static. 2012-11-28 15:35:12 -08:00
JoelKatz
bfbf0aa185 Eliminate redundant write set waits. You don't need to wait on future write sets. 2012-11-28 15:34:47 -08:00
JoelKatz
6aca65ff76 Get the shared pointers out of the scoped lock stuff. We don't need it. 2012-11-28 15:27:20 -08:00
Jed
725761d60e Remove a C++11 warning. 2012-11-27 16:44:56 -08:00
jed
dc4e5bc70a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-26 22:14:52 -08:00
Stefan Thomas
f1f7ccda52 Add digit group separator formatting to to_human(). 2012-11-26 18:49:29 -08:00
Stefan Thomas
e94765d0da Fix for non-native currencies in parse_human. 2012-11-26 18:49:29 -08:00
Stefan Thomas
5c3ffb4fd3 If you need override a method, do it straight up, don't abuse events.
Events are meant for managing asynchronous activity. Don't replace normal method
calls with events.

Look at the implementation for request() in the removed code. We can see that an
event is being emitted, but the code catching it could be anywhere in this file
or a different file or even in multiple places. Code containing too many events
quickly becomes unmaintainable.

Events are the most complex tool we have, callbacks are less complex and
synchronous calls are the least complex. Use the least complex tool that can
solve your problem.
2012-11-26 18:49:29 -08:00
Arthur Britto
11d0e93cd8 UT: Move test account configuration from config-example.js. 2012-11-26 16:30:35 -08:00
Arthur Britto
2bffd0d699 JS: Fix local_fee for remote.js. 2012-11-26 16:28:52 -08:00
Stefan Thomas
49ac818e28 Added different logging style when running in browser. 2012-11-26 15:12:15 -08:00
Stefan Thomas
6aa468f174 I think that comment belongs here. 2012-11-26 14:31:45 -08:00
Stefan Thomas
e8d357b6cd Added parsing function for parsing human-entered amount. 2012-11-26 14:31:40 -08:00
Stefan Thomas
1c09b9ceaa Make local fee determination configurable. 2012-11-26 13:10:53 -08:00
Arthur Britto
67ce14e93f JS: Add Amount.set_currency(). 2012-11-26 13:06:48 -08:00
Arthur Britto
e406c0f827 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-26 13:00:06 -08:00
Arthur Britto
8a83251da7 JS: fixes for parsing amounts. 2012-11-26 12:59:52 -08:00
JoelKatz
1380a0d544 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-26 11:45:07 -08:00
JoelKatz
885925a83b Add a 'CAUTION' notice to warn about creating vectors (or other containers
that use copy assignment) of types derived from SerializedType. You
generally don't want to do this anyway due to slicing, but make clear
the other risks. (Field names get mangled.)
2012-11-26 11:44:04 -08:00
Arthur Britto
0833f720e3 Fix config-example.js 2012-11-26 11:34:08 -08:00
JoelKatz
6013d994e2 STArray cannot use a vector of STObject's because bad things happen when you delete them. 2012-11-26 11:20:12 -08:00
JoelKatz
f5018b6cd1 Cleanup and log, no semantic changes. SerializedType::operator=(const SerializedType &) 2012-11-26 11:19:24 -08:00
JoelKatz
90ff46ff77 Add isUseful. 2012-11-26 11:18:16 -08:00
JoelKatz
4093f8a7a9 Small cleanup. 2012-11-26 10:54:32 -08:00
JoelKatz
949c49fbaf Cleanup. 2012-11-26 10:53:22 -08:00
JoelKatz
3f9d2e4b05 bugfix 2012-11-26 09:47:54 -08:00
JoelKatz
ea94feb643 Slots the PoW peer code will go into. 2012-11-25 21:32:21 -08:00
JoelKatz
ca59a885ca Suppress metadata for unmodified nodes. Add a transaction application sequence number to txn metadat. 2012-11-25 10:31:33 -08:00
JoelKatz
73ad63849c Some cleanups. 2012-11-25 08:54:23 -08:00
Arthur Britto
553d55b5db Prepare for PathState:createCanonical. 2012-11-24 14:53:01 -08:00
Arthur Britto
2af33273a5 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-24 14:08:34 -08:00
Arthur Britto
49e6ca70ba JS & UT: add et to vim setting. 2012-11-24 14:07:41 -08:00