Commit Graph

62 Commits

Author SHA1 Message Date
JoelKatz
5ed0197a42 Correctly update transactions in memory when a ledger closes. 2012-06-28 13:27:10 -07:00
JoelKatz
48de3f3a02 Cleanup. 2012-06-27 12:04:20 -07:00
Arthur Britto
74e831a3e7 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-06-25 23:31:30 -07:00
Arthur Britto
b56da4a73d Get WS ledger_subscribe and ledger_unsubscribe working. 2012-06-25 23:31:13 -07:00
JoelKatz
5e7c389085 Use new hash prefix. Remove SHAMapException 2012-06-25 09:12:54 -07:00
JoelKatz
324992b2ad Bugfixes. 2012-06-24 06:31:03 -07:00
JoelKatz
d81b1e6c84 Cleanups. 2012-06-22 00:41:40 -07:00
JoelKatz
94bc059f87 Fix some mishandling of genesis block close timing. 2012-06-20 13:40:10 -07:00
JoelKatz
a3daa061d3 Make sure the ledger hash is up to date when we set the immutable flag. 2012-06-18 19:56:34 -07:00
JoelKatz
1f8e1e0dcc Remove a broken assert. 2012-06-18 19:10:11 -07:00
JoelKatz
195c37b7c2 Fix another one. 2012-06-18 11:05:28 -07:00
JoelKatz
62dfd40ce9 Make SQL updates more sane. 2012-06-18 10:57:10 -07:00
JoelKatz
7e286839bb Suppress SQL errors in two cases where they are normal. 2012-06-18 10:30:10 -07:00
JoelKatz
bb6867345e Remove FIXME. 2012-06-18 00:32:51 -07:00
jed
2d7e096d29 start standardizing the RPC returns 2012-06-11 15:40:40 -07:00
jed
79f57bc1da changed some RPC returns 2012-06-11 14:01:16 -07:00
JoelKatz
6521ff52e3 "Upsert" transactions if they're committed after they're stored. 2012-06-11 01:12:52 -07:00
JoelKatz
63ea3d6f22 Fix transaction load/save functions. 2012-06-10 16:15:33 -07:00
JoelKatz
014684be07 Nevermind. 2012-06-10 01:09:53 -07:00
JoelKatz
7a114e7d84 Make the account state tag more readable. 2012-06-10 01:05:24 -07:00
JoelKatz
97d9cb9bc9 Oops. 2012-06-10 00:43:11 -07:00
JoelKatz
2d49cacd29 Move all SQL operations on ledger close into the ledger code so we can
accept ledgers without having to participate in the consensus process. We'll
need this when we implement "catch up".

Move AcctTx into the same connection as Txn so they can be part of a single
transaction.

Dispatch ledger accept synchronization functions into a detached thread so it
doesn't stall our I/O engine.
2012-06-09 22:01:31 -07:00
JoelKatz
eaf511ebb6 New ledger code. 2012-06-09 02:22:15 -07:00
Arthur Britto
480482d618 Merge branch 'master' into misc
Conflicts:
	src/TransactionEngine.cpp
2012-06-05 13:08:36 -07:00
Arthur Britto
26d7f0e1a4 Add ledger fuctionality for NicknameState. 2012-06-05 13:05:42 -07:00
JoelKatz
d8ad2fcbb5 Typo. 2012-06-04 21:45:59 -07:00
JoelKatz
e84c7924a4 Extra debug 2012-06-04 21:37:04 -07:00
JoelKatz
46f2248ce8 Small fixes. 2012-06-04 00:07:57 -07:00
JoelKatz
c386253be6 New ledger constructors and ledger snapshot code.
Remove dead code.
2012-06-03 19:42:38 -07:00
JoelKatz
766e03bc62 Fee charge fixes. 2012-06-01 20:34:25 -07:00
JoelKatz
c32e18d2ff use add, not getTransaction 2012-06-01 15:41:13 -07:00
Arthur Britto
68c8434a2b Rework RPCServer to go through NetworkOPs. 2012-05-30 00:41:10 -07:00
Arthur Britto
eab7a2d93a Merge branch 'pay'
Conflicts:
	src/NetworkOPs.cpp
2012-05-27 17:56:45 -07:00
Arthur Britto
bca01a396f Really fix sql for saveAcceptedLedger(). 2012-05-27 17:41:11 -07:00
JoelKatz
3fcdf31096 Bugfix. 2012-05-27 15:54:06 -07:00
Arthur Britto
428f6d371f Fix saveAcceptedLedger. 2012-05-27 14:01:33 -07:00
Arthur Britto
0010656ff8 Remove obsolete Local* code. 2012-05-20 01:52:23 -07:00
Arthur Britto
47b168c390 Merge branch 'pay' 2012-05-19 18:20:14 -07:00
Arthur Britto
5cba2b4497 Less debugging. 2012-05-19 18:17:44 -07:00
JoelKatz
99a8fd38cf Debug code no longer needed. 2012-05-19 01:08:13 -07:00
JoelKatz
7ab10c0012 Replicate the bug. 2012-05-18 20:27:10 -07:00
Arthur Britto
8760a5b3d2 Change over to STAmount. 2012-05-18 19:28:39 -07:00
JoelKatz
1eb5ab4ad0 Constants for ledger timing. 2012-05-14 14:06:15 -07:00
Arthur Britto
e16c771932 Remove LocalAccount from Transaction code. 2012-05-13 15:07:12 -07:00
JoelKatz
2a65bf28ff Remove extra comma. 2012-05-09 00:35:29 -07:00
JoelKatz
750ea96df3 Change mTimeStamp to mCloseTime. Json improvements. Next ledger close. 2012-05-08 03:42:41 -07:00
Arthur Britto
18bf10a7c0 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-05-07 18:39:32 -07:00
Arthur Britto
0492ea5877 Cosmetic SQL clean up. 2012-05-07 18:39:19 -07:00
JoelKatz
a626706638 Rework time logic. All network protocols now use our native time, 64-bit
seconds since 1/1/2000. Some places internally use only 32-bits. We'll have
to fix that by 2130 or so.
2012-05-07 15:31:48 -07:00
Arthur Britto
e7c362457e Fix database getNextRow(). 2012-05-05 16:45:55 -07:00