JoelKatz
a2c526a913
Construct SerializedTransaction from STObject
2012-10-06 14:30:56 -07:00
JoelKatz
40547c1ecc
Unit test.
2012-10-05 02:32:48 -07:00
JoelKatz
e04b695434
Burninate "Value" in "*ValueField*" functions. It was just pointless extra typing.
...
What else would you set/get in a field, by name, other than its value?
2012-10-01 15:35:30 -07:00
JoelKatz
79c35f2689
Remove all IField/ITField functions. They are now obsolete.
...
Use the correponding STObject functions.
2012-10-01 15:21:22 -07:00
JoelKatz
5cc421bc76
Temporary fix to some issues caused by transaction flattening.
...
Will work out details with Arthur.
2012-09-30 22:42:06 -07:00
JoelKatz
431ba30335
Missing function.
2012-09-28 19:34:21 -07:00
JoelKatz
01c164c6fb
Rewrite a lot of the SerializedTransaction code. Mostly just removing obsolete code.
2012-09-28 19:12:56 -07:00
JoelKatz
e0587a44b8
More work on new serializer code.
2012-09-25 22:47:59 -07:00
JoelKatz
2446db0bbe
More serialization work.
2012-09-25 19:27:09 -07:00
JoelKatz
2c2d9cf8f5
Small cleanups.
2012-09-10 16:30:25 -07:00
Arthur Britto
616af57654
Add SerializedObject and SerializedTransaction support for STPathSet.
2012-06-17 15:14:00 -07:00
JoelKatz
63ea3d6f22
Fix transaction load/save functions.
2012-06-10 16:15:33 -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
197a19b996
Beginning transaction persistance.
2012-06-09 19:12:06 -07:00
Arthur Britto
573edfcb91
Add support for H128 to Serialized classes.
2012-06-02 14:23:44 -07:00
JoelKatz
5ab1041b26
Transaction fees are STAmounts.
2012-06-01 20:33:17 -07:00
JoelKatz
9d41104d83
With all this rope lying about, someone might get hung.
...
(Wrong length for SerialializedTransaction.)
2012-06-01 16:25:59 -07:00
JoelKatz
7f4135a223
We had decided transaction fees were uint64, not STAmount.
...
Code was half and half.
2012-06-01 16:05:58 -07:00
JoelKatz
6be5c42720
Bugfixes.
2012-06-01 15:41:26 -07:00
Arthur Britto
1e9304f8c6
Use STPathSet in place of STPath in transactions.
2012-05-20 23:43:02 -07:00
Arthur Britto
98ade9985e
Work toward RPC send.
2012-05-20 22:59:13 -07:00
Arthur Britto
8760a5b3d2
Change over to STAmount.
2012-05-18 19:28:39 -07:00
JoelKatz
163ecc60e3
STAmount helpers for STObject/STTransaction.
2012-05-17 20:26:52 -07:00
JoelKatz
cb4fcfddac
Get rid of some ugliness in the use of ptr_vectors. I hope I didn't break anything.
2012-05-15 16:07:42 -07:00
Arthur Britto
383e9c69aa
Fix checkSign for SerializedTransaction.
2012-05-15 13:03:18 -07:00
Arthur Britto
e16c771932
Remove LocalAccount from Transaction code.
2012-05-13 15:07:12 -07:00
Arthur Britto
5ad3eb6d4d
Work towards Claim.
2012-05-11 18:29:41 -07:00
JoelKatz
6f2f058cd8
Derive Serialized ledger and transaction classes from SerializedType, not STObject.
2012-04-27 11:48:32 -07:00
JoelKatz
0903f5e433
Be clear about what's an account and what's a public key.
2012-04-24 04:42:49 -07:00
JoelKatz
9e2d13ff3e
SerializedTransaction::getAffectdAccounts
...
So we can know what transactions affect what accounts.
2012-04-24 04:34:46 -07:00
JoelKatz
454f47fa99
Tie SerializedTransacion code to NewcoinAddress code.
2012-04-23 15:59:02 -07:00
JoelKatz
9a50a0e4f1
Helper function for STAccount->uint160 inside an object.
2012-04-20 20:21:27 -07:00
JoelKatz
31d65b222e
Missing from previous commit.
2012-04-20 17:42:17 -07:00
JoelKatz
ad8ff12803
Fix mishandling of signing account.
...
Fix failure to set transaction type.
2012-04-20 13:30:18 -07:00
JoelKatz
9fa335af63
Update to 32-bit flags. A few serialized transaction fixes.
2012-04-12 16:02:20 -07:00
JoelKatz
21bb574e96
Having a function in a base class that's widely overloaded called 'getType'
...
is a bad idea. Change it to 'getSType'.
2012-04-08 19:56:48 -07:00
JoelKatz
d7669944de
Ability to compare serialized types.
2012-04-08 16:33:28 -07:00
JoelKatz
f705b647a1
Get a field as a string.
2012-03-28 15:08:41 -07:00
JoelKatz
cb28fd52a3
Make accounts there own type
...
so we can add new functionality and so they can display properly.
Cleanups and missing helper function.
2012-03-27 15:51:14 -07:00
JoelKatz
bd9780e503
Tie the new serialization code into the Json code.
...
Small cleanups.
2012-03-26 20:31:03 -07:00
JoelKatz
b72cdbac66
Cleanups. Move the sequence number into the middle transaction.
2012-03-26 18:04:36 -07:00
JoelKatz
649e1fda37
Final non-breaking changes to serializer classes. Extra set helper functions.
2012-03-26 11:43:26 -07:00
JoelKatz
39ce609a54
Push non-breaking changes to main branch.
2012-03-25 21:15:31 -07:00
JoelKatz
38cecf2d8f
Code improvements:
...
A way to avoid duplicate field indexes that Arthur came up with.
Abstract out code to create individual fields.
Field index operations.
Flag operations.
Optional field operations.
2012-03-25 00:04:59 -07:00
JoelKatz
4ac2aefe48
Format fixes. Transaction fee functions.
2012-03-22 20:50:34 -07:00
JoelKatz
228b36d734
STUObject->STObject
2012-03-22 15:45:22 -07:00
JoelKatz
bcb7206d74
Change some STU* names to ST* names.
2012-03-20 11:21:02 -07:00
JoelKatz
2c113e8f8e
Type for transaction types.
2012-03-19 09:31:20 -07:00
JoelKatz
4b66d24e3a
Transaction in modifiable form.
2012-03-19 09:27:46 -07:00