Commit Graph

2758 Commits

Author SHA1 Message Date
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
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
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
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
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
jed
5b6b4aaa0e Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-24 11:21:36 -08:00
jed
8edff633d2 meta for transaction stream 2012-11-24 11:21:18 -08:00
JoelKatz
a9d9353f9b Remove TaggedList's, they're obsolete. 2012-11-24 11:02:27 -08:00
JoelKatz
d12eb08619 Cleanup. 2012-11-24 10:57:06 -08:00
JoelKatz
8bb2168392 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-24 09:26:40 -08:00
JoelKatz
95e3b5ece7 Explain the various times. 2012-11-24 09:26:26 -08:00
Stefan Thomas
9f44aff370 Renamed to_pretty to to_human in accordance with Currency.to_human. 2012-11-23 20:14:34 -08:00
Stefan Thomas
731abf0140 Added pretty printing method to Amount. 2012-11-23 19:57:37 -08:00
Stefan Thomas
c311206c4c Remote trailing whitespace and convert tabs-spaces mixture to spaces. 2012-11-23 18:59:20 -08:00
Stefan Thomas
fb48d60818 Added local consts variable for easier access to constants. 2012-11-23 18:55:55 -08:00
Arthur Britto
6e543dfb1d JS: Fix and another unit-test. 2012-11-23 18:50:20 -08:00
Arthur Britto
04d0e913e7 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-23 18:47:56 -08:00
Arthur Britto
19bdee89cd Add UInt160.is_valid(), Amount.is_valid(), Currency.is_valid(), & Currency.is_valid_full(). 2012-11-23 18:47:39 -08:00
Stefan Thomas
fca3751375 Explicitly expose certain classes. 2012-11-23 18:41:41 -08:00
Arthur Britto
03e1357448 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-23 18:30:55 -08:00
Arthur Britto
d59ae37f3a JS: Add is_valid() for UInt160 and Currency. 2012-11-23 18:30:43 -08:00
jed
89f02efc16 option to return date of transaction in the JSON 2012-11-23 17:58:48 -08:00
JoelKatz
6bc817d377 Don't use the most expensive synchronization primitives available. 2012-11-23 12:43:16 -08:00