Greg Fitzgerald
383d445ba1
Clippy review
2018-03-22 14:15:29 -06:00
Greg Fitzgerald
803dcb0800
Mutex<bool> -> AtomicBool
2018-03-22 14:05:23 -06:00
Greg Fitzgerald
fde320e2f2
Merge pull request #71 from garious/rework-recorder
...
Replicate the ledger
2018-03-21 17:23:55 -06:00
Greg Fitzgerald
8ea97141ea
Update the test to replicate the ledger
2018-03-21 17:15:32 -06:00
Greg Fitzgerald
9f232bac58
Allow clients to sync the ledger
...
Fixes #4
2018-03-21 15:46:49 -06:00
Greg Fitzgerald
8295cc11c0
Move JSON printing up the stack
2018-03-20 23:15:44 -06:00
Greg Fitzgerald
70f80adb9a
Merge pull request #70 from garious/planevent-to-witness
...
Cleanup
2018-03-20 19:13:02 -06:00
Greg Fitzgerald
9a7cac1e07
Use the Entry API to remove the double lookup
2018-03-20 18:07:54 -06:00
Greg Fitzgerald
c584a25ec9
Move complete_transaction from method to function
...
So that we can hold separate mutable references to the pending queue
and the map of balances.
2018-03-20 17:47:57 -06:00
Greg Fitzgerald
bff32bf7bc
Cleanup
2018-03-20 17:32:02 -06:00
Greg Fitzgerald
d0e7450389
Add docs
2018-03-20 16:58:14 -06:00
Greg Fitzgerald
4da89ac8a9
Cleanup naming
2018-03-20 16:53:41 -06:00
Greg Fitzgerald
f7032f7d9a
Cleanup: replace bool retval with is_complete() method
2018-03-20 16:52:47 -06:00
Greg Fitzgerald
7c7e3931a0
Better docs
2018-03-20 15:52:46 -06:00
Greg Fitzgerald
6be3d62d89
Remove Action from spending plans
2018-03-20 15:43:07 -06:00
Greg Fitzgerald
6f509a8a1e
Reorder
2018-03-20 15:31:28 -06:00
Greg Fitzgerald
4379fabf16
PlanEvent -> Witness
...
The term used by the Simplicity smart contract language
2018-03-20 15:25:50 -06:00
Greg Fitzgerald
6b66e1a077
Merge pull request #69 from garious/move-streamer-benchmark
...
Move streamer benchmark out of unit tests
2018-03-19 17:33:45 -06:00
Greg Fitzgerald
c11a3e0fdc
Move streamer benchmark out of unit tests
2018-03-19 17:10:01 -06:00
Greg Fitzgerald
3418033c55
Merge pull request #68 from garious/fix-bench
...
Fix bench
2018-03-19 16:52:41 -06:00
Greg Fitzgerald
caa9a846ed
Boot sha2-asm
...
Stick with pure Rust until someone can write a benchmark that
demonstrates that sha2-asm adds value. If we go with a GPU
implementation first, we may never need to do that.
2018-03-19 16:42:30 -06:00
Greg Fitzgerald
8ee76bcea0
Fix benchmark build
2018-03-19 16:41:01 -06:00
Greg Fitzgerald
47325cbe01
Merge pull request #67 from garious/cleanup-naming
...
Cleanup naming
2018-03-19 16:29:08 -06:00
Greg Fitzgerald
e0c8417297
Apply renames to docs
2018-03-19 10:23:43 -06:00
Greg Fitzgerald
9238ee9572
No longer rename log crate
2018-03-19 10:18:51 -06:00
Greg Fitzgerald
64af37e0cd
logger -> recorder
...
Free up namespace for a traditional runtime logger.
2018-03-19 10:16:21 -06:00
Greg Fitzgerald
9f9b79f30b
log -> ledger
...
Free up namespace for traditional runtime logs.
2018-03-19 10:09:19 -06:00
Greg Fitzgerald
265f41887f
asset -> tokens
2018-03-19 10:03:41 -06:00
Greg Fitzgerald
4f09e5d04c
Merge pull request #66 from garious/conditional-plan
...
Simplify contract language
2018-03-18 21:12:26 -06:00
Greg Fitzgerald
434f321336
Add spending plan tests
2018-03-18 21:02:28 -06:00
Greg Fitzgerald
f4e0d1be58
Make conditions explicit in races
...
And boot recursive spending plans. That path required heap allocations.
Since we don't have a need for this generality right now, reduce the
language to the smallest one that can pass our test suite.
2018-03-17 20:43:05 -06:00
Greg Fitzgerald
e5bae0604b
Specialize transaction assets to i64
...
Proof-of-history is generic, but now that we're using it entirely
for tokens, we can specialize the type and start doing more interesting
things than just Eq and Serialize operations.
2018-03-17 19:56:15 -06:00
Greg Fitzgerald
e7da083c31
Move spending plans to their own crate
2018-03-17 19:56:15 -06:00
Greg Fitzgerald
367c32dabe
Guard spending plans, not just payments
2018-03-17 19:56:15 -06:00
anatoly yakovenko
e054238af6
Merge pull request #65 from aeyakovenko/fixtest
...
fix test
2018-03-14 12:21:08 -07:00
Anatoly Yakovenko
e8faf6d59a
trait test
2018-03-14 11:28:05 -07:00
Anatoly Yakovenko
baa4ea3cd8
wfmt
2018-03-14 11:14:40 -07:00
Anatoly Yakovenko
75ef0f0329
fix test
2018-03-14 11:02:38 -07:00
Greg Fitzgerald
65185c0011
Merge pull request #63 from aeyakovenko/streamer-integrated
...
Streamer integrated
2018-03-12 08:38:59 -06:00
Anatoly Yakovenko
eb94613d7d
Use streaming socket interface within accountant
...
Pull messages from streamer process them and forward them to the sender.
2018-03-11 23:41:09 -05:00
Greg Fitzgerald
67f4f4fb49
Merge pull request #64 from garious/dumb-contracts
...
Entry-level smart contracts
2018-03-11 13:23:11 -06:00
Greg Fitzgerald
a7ecf4ac4c
Merge pull request #57 from aeyakovenko/streamer
...
Streamer
2018-03-11 13:22:49 -06:00
Greg Fitzgerald
45765b625a
Don't let users accidentally burn their funds either
2018-03-11 12:04:49 -06:00
Greg Fitzgerald
aa0a184ebe
Ensure the server isn't passed a Plan that spends more than is bonded
2018-03-11 11:53:45 -06:00
Anatoly Yakovenko
069f9f0d5d
add ipv6 flag to cargo.toml
2018-03-11 12:53:16 -05:00
Anatoly Yakovenko
c82b520ea8
remove unecessary returns
2018-03-11 11:45:17 -05:00
Anatoly Yakovenko
9d6e5bde4a
ipv6 test with a separate flag
2018-03-11 11:22:21 -05:00
Greg Fitzgerald
0eb3669fbf
cleanup timestamp processing
2018-03-11 00:30:01 -07:00
Greg Fitzgerald
30449b6054
cleanup sig processing
2018-03-11 00:11:08 -07:00
Greg Fitzgerald
f5f71a19b8
First go at smart contracts
...
Needs lots of cleanup.
2018-03-10 22:00:48 -07:00