Commit Graph

13695 Commits

Author SHA1 Message Date
JoelKatz
de1e8cdab7 The new code tracks responses by ledger hash, not by request sequence. 2012-01-30 17:58:49 -08:00
JoelKatz
895a51319d Do it the way everyone else does it -- more likely to work. 2012-01-30 17:58:29 -08:00
JoelKatz
94d61f67a8 Outline of the LedgerAcquire class and its tracking class. 2012-01-30 14:51:21 -08:00
JoelKatz
e47cba3369 Code to track ledgers we're acquiring from remote node, allow
callbacks to be attached to them, and trigger their state machines.
2012-01-30 12:56:43 -08:00
JoelKatz
7885439bb4 Tiny optimization. 2012-01-27 11:34:55 -08:00
JoelKatz
110a4a47f1 Use the transaction master. 2012-01-27 11:34:41 -08:00
JoelKatz
4f0a9a4ce5 Tie in transaction master. Some performance improvements and const fixes. 2012-01-27 11:33:54 -08:00
JoelKatz
0867986c35 Tie in transaction master code. 2012-01-27 11:33:36 -08:00
JoelKatz
1896348b7b Modify the ledger history code to use the tagged cache. 2012-01-25 16:32:27 -08:00
JoelKatz
8a0625a477 Bugfix. 2012-01-25 16:32:13 -08:00
JoelKatz
58d81ca937 Map/Cache to track objects by name and canonicalize references. Will
be used for transactions and closed ledgers.
2012-01-25 15:27:14 -08:00
JoelKatz
f4e6a72e1c Logic to 'rebase' a ledger to a different previous ledger.
This code does not assume the new previous ledger is valid
or trusted.
1) Validate sequence numbers and basic information.
2) Create a new ledger based on the new previous ledger.
3) Compare the old previous ledger and the new previous
ledger.
4) Try to include any missing, valid transactions in
the current ledger.
5) Traverse the old ledger based on the old previous ledger,
try to import any transactions into the new ledger.
2012-01-24 21:30:27 -08:00
JoelKatz
b5afbf52ec Protocol enhancements for network 'previous ledger' sync. 2012-01-24 21:29:54 -08:00
JoelKatz
7215f5b220 Add AccountState::addJson. Make RPC call "accountinfo <account>" work
on non-local accounts and local account by account identifier.
2012-01-23 16:58:17 -08:00
JoelKatz
f4c6865751 Add new commands to help. 2012-01-23 13:38:12 -08:00
JoelKatz
6112a443cf Add "ledger" command to get ledger information. Make the command
work with no parameters. Fix a bug where the ledger's account/txn
hashes didn't get properly synchronized to the SHA maps. Add function
to get ledger as json object.
2012-01-23 13:31:39 -08:00
JoelKatz
017a606f3b Support "tx <family> <seq>" RPC command. 2012-01-23 12:12:34 -08:00
JoelKatz
fc0c57c723 Trivial change. 2012-01-23 12:12:24 -08:00
JoelKatz
70bc25e6d7 Trivial change. 2012-01-23 12:12:16 -08:00
JoelKatz
e0abc4b35c Finish "txn <id>" RPC command. 2012-01-21 12:57:33 -08:00
JoelKatz
ff4678c741 Make 'tx' RPC command with no parameteres work. It displays all
"in progress" transactions that affect local accounts.
2012-01-20 17:44:28 -08:00
JoelKatz
5196be1645 Properly report unknown command errors so the command line tool
can give help.
2012-01-20 17:44:06 -08:00
JoelKatz
ba6d040266 Infrastructure for "tx" RPC command to track transactions. 2012-01-20 16:43:53 -08:00
JoelKatz
50e23112e3 Fix applying transactions with a local destination to the wallet. 2012-01-20 13:43:07 -08:00
JoelKatz
5d08754104 Spurious parse errors caused by missing 'break's. 2012-01-20 13:28:31 -08:00
JoelKatz
27e8d12fab Sorry, wrong function.# database/shell.c 2012-01-19 19:39:58 -08:00
JoelKatz
416695f64e Report a resolver error to the RPC caller. 2012-01-19 18:44:06 -08:00
JoelKatz
82375c30b4 We need to detach on all errors or the Peer structure will stay in memory
forever.
2012-01-19 18:43:51 -08:00
JoelKatz
78ad27e6aa Be consistent in how we include boost headers. 2012-01-19 18:43:32 -08:00
JoelKatz
b93613e835 Fix crash on bad resolve. Fix peer shutdown logic. Fix peer tracking logic. 2012-01-19 18:38:31 -08:00
JoelKatz
7049d036d9 Actually, I think this code is okay. 2012-01-19 18:24:55 -08:00
JoelKatz
95a74ee904 Bugfixes. 2012-01-19 16:14:47 -08:00
JoelKatz
06d69888fd Complete initial implementation of transaction relaying. 2012-01-19 15:56:06 -08:00
JoelKatz
0b69be862f Slot for IPv4 port 2012-01-19 14:25:45 -08:00
JoelKatz
e39a2ddbb3 Ignore a spurious error 2012-01-19 14:25:35 -08:00
JoelKatz
10f7d3247d Fill in some fields in the Hello packet, and report them on reception. 2012-01-19 14:25:20 -08:00
JoelKatz
1c01d7dc8d Let's not use message type 0 2012-01-19 14:16:09 -08:00
JoelKatz
5f394e9bb7 Whitespace. 2012-01-19 14:11:26 -08:00
JoelKatz
b9326d2454 Cleanups, add debug. 2012-01-19 14:11:15 -08:00
JoelKatz
7d26c47035 Fire up the I/O engine on an outbound connection. 2012-01-19 14:10:39 -08:00
JoelKatz
cabbfffbdf Remove debug we don't need. 2012-01-19 14:10:14 -08:00
jed
92f6ad6d37 getting connections working 2012-01-19 12:32:41 -08:00
JoelKatz
239e26a56e Update with current RPC commands. Fix help logic. 2012-01-19 10:26:21 -08:00
JoelKatz
4ec389f0e6 Remove test.cpp, switch Makefile to use main.cpp 2012-01-19 10:26:01 -08:00
JoelKatz
d31a85fe3a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-01-19 10:14:20 -08:00
JoelKatz
61f72e2141 Remove old code. 2012-01-19 10:04:48 -08:00
JoelKatz
ef24377d08 'connect' RPC command 2012-01-19 10:03:57 -08:00
JoelKatz
969ef6540e Implement 'connectTo'. 2012-01-19 10:03:04 -08:00
JoelKatz
805990618e Remove some functionality that belongs in ConnectionPool 2012-01-19 10:02:34 -08:00
jed
315db73ddd build on windows 2012-01-19 09:51:01 -08:00