Arthur Britto
28268bbaed
JS: Fix transparent caching of ledger entries.
2012-11-29 15:33:23 -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
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
JoelKatz
8b53f85f60
Separate ledger publish logic so we can tell if clients are overloading us.
2012-11-23 12:15:04 -08:00
Stefan Thomas
4065106592
Basic handling for account events - as in: Don't throw an error.
2012-11-23 10:47:02 -08:00
Stefan Thomas
e64526c0da
Make local sequence number tracking optional.
2012-11-23 10:45:02 -08:00
Stefan Thomas
ffa923daf5
Added interface for rt_accounts.
2012-11-23 10:14:09 -08:00
Arthur Britto
64ec8a7b6f
Make ripple_path_find more robust and clean up.
2012-11-22 19:10:43 -08:00
Arthur Britto
09ac6ec8a4
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-11-22 14:03:42 -08:00
Arthur Britto
5c1605ab35
Rough cut at ripple_path_find.
2012-11-22 14:03:32 -08:00
Arthur Britto
b7e18f367b
Cosmetic changes.
2012-11-22 14:02:51 -08:00
JoelKatz
6e2bbaf2e7
Fix missing metadata bug.
2012-11-22 12:25:17 -08:00
JoelKatz
7acdb36257
Cleanup.
2012-11-22 12:25:08 -08:00
JoelKatz
520ad29387
Fix compilation errors/warnings.
2012-11-22 12:24:54 -08:00