JoelKatz
bfee7a3082
I apologize for the disaster that was toUInt64. It has been nuked from orbit.
2012-10-12 18:24:32 -07:00
JoelKatz
19b518a0af
Quick fix for the bug that was causing ledgers to diverge.
...
LES used an unordered map, causing the traverse of modified ledger nodes to
be in random order. This meant different nodes would thread transactions
differently, causing ledger divergence. This change switches the LES code to
use a standard map. This adds more overhead to LES search functions (because
ordered map operations like search and insert are more expensive than
unordered map opreations, so it may be worth a separate ordering step just
for calcRawMeta instead.
2012-10-12 17:01:37 -07:00
Arthur Britto
b2481f3c49
Rename the protocol from newcoin to ripple.
2012-10-12 15:53:59 -07:00
Arthur Britto
2af15db40a
Rename everything from newcoin to ripple except the protocol buffers.
2012-10-12 15:48:33 -07:00
Arthur Britto
237ff73916
Bump protocol version.
2012-10-12 15:12:56 -07:00
Arthur Britto
59ccfb315d
Change leading character for addresses from "i" to "r".
2012-10-12 15:09:22 -07:00
Arthur Britto
edabc770aa
Cosmetic.
2012-10-12 15:08:56 -07:00
JoelKatz
efbc4b3cbd
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-12 09:22:41 -07:00
JoelKatz
ab01c7c4a7
I believe our comparisons were broken for STAmount, for example, 0 XNS would
...
compare greater than 1 XNS! For non-native currencies, -2 would be greater
than -1, which is wrong. This should fix it. We definitely need to make some
test cases. Arthur, please look over this code and make sure I didn't miss
something.
2012-10-12 09:21:29 -07:00
jed
8a22f5a8e8
Merge branch 'master' of github.com:jedmccaleb/NewCoin
...
Conflicts:
src/SHAMapNodes.cpp
2012-10-12 09:00:50 -07:00
jed
391ef2fb1f
.
2012-10-12 08:59:51 -07:00
JoelKatz
92f004c47f
A minimal, but serviceable, implemention of replying to TMGetObjectByHash queries.
2012-10-12 06:35:16 -07:00
JoelKatz
6ab6be13d7
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-12 03:59:38 -07:00
JoelKatz
51c5de61d9
TMGetObjectByHash design changes.
2012-10-12 03:59:25 -07:00
Arthur Britto
7fc13e3528
Clean up getJson() for STAmount.
2012-10-11 20:07:41 -07:00
JoelKatz
1a5de6bd3d
operator<< must return a value
2012-10-11 16:22:29 -07:00
jed
67415e0543
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-11 12:54:12 -07:00
Arthur Britto
624fe1295f
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-11 12:14:20 -07:00
Arthur Britto
d270b6b074
Fix ripple calc looping on errors.
2012-10-11 12:14:14 -07:00
jed
24d6891cc6
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-11 09:19:19 -07:00
jed
04f244ce9d
change profile
2012-10-11 09:19:05 -07:00
JoelKatz
2a13b9b7db
Fix the '--load' logic.
2012-10-11 07:03:21 -07:00
JoelKatz
ac8e2292cf
Add a comment.
2012-10-11 07:03:14 -07:00
JoelKatz
37f246396f
Try to populate the ledger root.
2012-10-11 07:02:25 -07:00
JoelKatz
4a86685574
A ledger fetched from SQL is always immutable.
2012-10-11 07:02:02 -07:00
JoelKatz
e18f8c47f5
Use the local hashed object store to jump start fetching a ledger.
2012-10-11 07:01:40 -07:00
JoelKatz
cf6206f19b
Some nicer logging.
2012-10-11 07:01:23 -07:00
JoelKatz
55e38c40f7
Cleanups.
2012-10-11 07:01:03 -07:00
JoelKatz
07cd8ad9bd
Some extra debug on the dirty node flush code. It appears good.
2012-10-11 06:04:06 -07:00
JoelKatz
8c790b1d88
Remove dead code.
2012-10-11 05:17:35 -07:00
JoelKatz
61c9d30732
Set up to fix the bug Jed reported and also support faulting in nodes under ledgers.
2012-10-11 05:13:29 -07:00
JoelKatz
c43934ab6f
Fix lots of places I used 'empty' instead of 'clear'. This is why I like 'isEmpty'.
2012-10-11 05:06:24 -07:00
JoelKatz
4f1ebc2884
Put the missing node type in the SHAMapMissingNode exception.
2012-10-11 03:16:18 -07:00
JoelKatz
67477beecb
Track the type of map in the SHAMap. This will make it easier to parse missing nodes
...
at ledger level.
2012-10-11 03:13:28 -07:00
JoelKatz
30dd46d812
Improve SHAMapMissingNode
2012-10-11 02:50:04 -07:00
Arthur Britto
f81a3c623a
More fixes for ripple incremental pass handling.
2012-10-10 22:13:39 -07:00
Arthur Britto
dfff2c61d1
Transaction engine makes sure max send is positive.
2012-10-10 22:12:56 -07:00
Arthur Britto
d086c05966
Fix ripple balance handling between path increments.
2012-10-10 20:50:17 -07:00
Arthur Britto
5f28af66ca
Fix error checking in RippleCalc.
2012-10-10 20:12:18 -07:00
Arthur Britto
157dce46cf
Fix a problem with offer delivery.
2012-10-10 15:05:31 -07:00
Arthur Britto
e964bf7c9a
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-10 12:44:11 -07:00
Arthur Britto
ab6dfadc5f
Have RPCServer report messages from throws.
2012-10-10 12:44:00 -07:00
jed
841ae5b41b
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-10 09:34:10 -07:00
JoelKatz
1448eb1a5c
'--net' startup option to require the node to get its ledger from the network.
...
Once we have a stable network, this will likely be the default.
2012-10-10 01:40:02 -07:00
JoelKatz
850fee99e7
Types for templates, if we decide to use them.
2012-10-10 01:39:20 -07:00
Arthur Britto
84aec67507
JS: Add ledger_accept to remote.js
2012-10-10 00:38:29 -07:00
Arthur Britto
fc73e286c4
WS: Changed response of server_subscribe.
2012-10-10 00:15:40 -07:00
Arthur Britto
2f5ed5951b
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-10 00:06:47 -07:00
Arthur Britto
23938b8c2d
WS: fix ledger_accept.
2012-10-10 00:06:26 -07:00
MJK
9e6a885af9
Fix minor typo
2012-10-09 22:48:27 -07:00