Jonathan "Duke" Leto
85d5313d4c
This is more correct but still does not seem to work
7 years ago
Jonathan "Duke" Leto
8d022201f3
Make viewing a hushlist memo possible
7 years ago
Jonathan "Duke" Leto
c33024c250
we can send from a taddr, need to generalize
7 years ago
Jonathan "Duke" Leto
7829a9b6f5
Allow sending from taddr, this gets all the way to insufficient funds error from z_sendmany
7 years ago
Jonathan "Duke" Leto
6093d02de5
Specify minconf, fee, only grab correct contacts for current xtn, balance check fixes
7 years ago
Jonathan "Duke" Leto
4f488e630f
starting on send_file
7 years ago
Jonathan "Duke" Leto
bf7afdb76a
Add a contact to a list, super duper naive version
7 years ago
Jonathan "Duke" Leto
d646356c62
We add Hush contacts to Hushlists, not zaddrs directly (abstraction for the win)
7 years ago
Jonathan "Duke" Leto
5e8a2c2f93
Some validation for 'contact rm'
7 years ago
Jonathan "Duke" Leto
79c7703887
Successfully added a local contact via './bin/hushlist contact add me zc...'
7 years ago
Jonathan "Duke" Leto
9f218568f3
Add some tests for valid+invalid zaddrs and fix our broken regex
7 years ago
Jonathan "Duke" Leto
0b87c24bf2
Much better zaddr validation to make sure we are operating on valid addresses
7 years ago
Jonathan "Duke" Leto
e226896559
Fix contact subcommand which was factored out to a new module
7 years ago
Jonathan "Duke" Leto
0f5ca52753
Make is_valid_zaddr work, still needs work
7 years ago
Jonathan "Duke" Leto
88bd71c074
Refactor find_memos to use Hush::Memo
7 years ago
Jonathan "Duke" Leto
c36850b262
Create Hush::Memo class and refactor find_memos to use z_listreceivedbyaddress which makes things super easier
7 years ago
Jonathan "Duke" Leto
1844c77cb4
Stub out the next steps of our memo-finding algo
7 years ago
Jonathan "Duke" Leto
4c068f0292
Properly validate zaddrs, almost
7 years ago
Jonathan "Duke" Leto
719343d43f
Starting improving hush contacts and finding recent memos for a given Hushlist
7 years ago
Jonathan "Duke" Leto
58ef021695
Migrate some code into Hush::Contact which was lonely
7 years ago
Jonathan "Duke" Leto
68da246699
Start implementing adding contacts on the command-line
7 years ago
Jonathan "Duke" Leto
b864348a22
env vars for the win
7 years ago
Jonathan "Duke" Leto
a5ab464918
More show() stubage
7 years ago
Jonathan "Duke" Leto
dbfbda14b3
Refactor some common code into functions we will reuse all over the place
7 years ago
Jonathan "Duke" Leto
87a04e9f84
Improve debug infra and make help() more useful while splitting it off from usage()
7 years ago
Jonathan "Duke" Leto
5eeb88ee8f
Detect when hushlist user does not have enough to cover network fees
7 years ago
Jonathan "Duke" Leto
13db782a7a
fix some rpc code smells
7 years ago
Jonathan "Duke" Leto
c8300b83ea
define HUSH_DEBUG to get more info
7 years ago
Jonathan "Duke" Leto
a1188a712e
add Hush.pm pod
7 years ago
Jonathan "Duke" Leto
972319e471
this is better
7 years ago
Jonathan "Duke" Leto
dee5c3fc17
Get z_sendmany to actually execute!
We hit this error because we had no ZEC in a zaddr, as expected:
2017-11-21 05:31:34 opid-56f62a29-b5a6-4c8c-8c09-4484b8909662:
z_sendmany finished (status=failed, error=Insufficient funds, no unspent
notes found for zaddr from address.)
It seems that there may be a bug in sending arrays of one element and
how the get JSONified by Bitcoin::JSON::Client, not sure.
7 years ago
Jonathan "Duke" Leto
a53951dfd2
this gives us a opid from z_sendmany
7 years ago
Jonathan "Duke" Leto
2b5900595b
Make our error message about RPC being down as useful as possilbe
7 years ago
Jonathan "Duke" Leto
bdf5a1f045
Better error message when RPC server is down
7 years ago
Jonathan "Duke" Leto
c495095d26
hexify memo
7 years ago
Jonathan "Duke" Leto
34af562cef
Get closer to making z_sendmany happy and give the correct JSON structure that it wants, an array and not a hash; memo field is complaining that it wants to be hex when it grows up
7 years ago
Jonathan "Duke" Leto
8932aac17a
The kingdom was lost for the want of an each
7 years ago
Jonathan "Duke" Leto
b0884a5255
Getting closer to z_sendmany working, but in an infinite loop, lol
7 years ago
Jonathan "Duke" Leto
0bf52a9cbf
Fight with z_sendmany some more
7 years ago
Jonathan "Duke" Leto
ee270fbb32
we don't need this
7 years ago
Jonathan "Duke" Leto
0b87a3b8bb
Fucking JSON
7 years ago
Jonathan "Duke" Leto
b7b8316790
better logging when z_sendmany fails
7 years ago
Jonathan "Duke" Leto
cacb07b19d
more debugging, actually running z_sendmany: error message: JSON value is not a string as expected (z_sendmany)
7 years ago
Jonathan "Duke" Leto
638b2a8a11
ignore some guardrails that are getting in the way for now
7 years ago
Jonathan "Duke" Leto
9906fe4cf5
start spamming the filesystem with log lines into a file called debug.log, in the long tradition of Satoshi and shitcoiners
7 years ago
Jonathan "Duke" Leto
19f9e7029f
loggin' like a lumberjack
7 years ago
Jonathan "Duke" Leto
1dfdd487fe
Start to correctly build up the datastructures that z_sendmany wants to eat
7 years ago
Jonathan "Duke" Leto
b114439402
Start getting serious about z_sendmany
7 years ago
Jonathan "Duke" Leto
32d4169339
hushlists have a default chain, which can be changed at run-time to send to contact addresses on other chains
7 years ago
Jonathan "Duke" Leto
e14cce022b
improve status
7 years ago