-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api improvements #131
Api improvements #131
Commits on Sep 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 139fdd9 - Browse repository at this point
Copy the full SHA 139fdd9View commit details -
policy: Add minimum swap amount
We already use a lower boundary in sat to perform a swap due to economical reasons. We want to be able to return this value via the api, so this commit moves this value to the policy where it belongs. The MinSwapAmountMsat is now in msat, set to a default of 100000000 msat and can NOT be overridden in the policy file. We might change this in the future. This might change at some point in the future.
Configuration menu - View commit details
-
Copy full SHA for 9c40271 - Browse repository at this point
Copy the full SHA 9c40271View commit details -
policy: Add missing locks on getters
We missed some mutex locks on the getters.
Configuration menu - View commit details
-
Copy full SHA for cb0db1a - Browse repository at this point
Copy the full SHA cb0db1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4786be2 - Browse repository at this point
Copy the full SHA 4786be2View commit details -
policy: Add json tags for json snake case to the policy struct
GLightning returned the struct in camel case but we want to use snake case for the returned values / structs.
Configuration menu - View commit details
-
Copy full SHA for 4597d62 - Browse repository at this point
Copy the full SHA 4597d62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4342cb9 - Browse repository at this point
Copy the full SHA 4342cb9View commit details
Commits on Sep 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4d59d20 - Browse repository at this point
Copy the full SHA 4d59d20View commit details -
dev: Rework of the cln node tools
We want a cleaner toolkit for developing and an easy way to setup a linear network of 2 cln nodes.
Configuration menu - View commit details
-
Copy full SHA for 8747c50 - Browse repository at this point
Copy the full SHA 8747c50View commit details -
dev: Rework of the lnd node tools
We want a cleaner toolkit for developing and an easy way to setup a linear network of 2 lnd nodes.
Configuration menu - View commit details
-
Copy full SHA for ee69e0a - Browse repository at this point
Copy the full SHA ee69e0aView commit details
Commits on Sep 21, 2022
-
api: Use the same swap list in return for lnd and cln
We want to return the same data for the listswap calls on both peerswapd for lnd and the cln peerswap plugin. We use the protos and the generated stubs to ensure the same return values on the listswaps, listactiveswaps, swapin and swapout commands.
Configuration menu - View commit details
-
Copy full SHA for 50b4b64 - Browse repository at this point
Copy the full SHA 50b4b64View commit details -
dev: Rework of the peerswapd tools
We want a cleaner toolkit for developing and an easy way to setup a linear network of 2 lnd nodes.
Configuration menu - View commit details
-
Copy full SHA for 598d8d7 - Browse repository at this point
Copy the full SHA 598d8d7View commit details
Commits on Sep 22, 2022
-
policy: Add pubkey validation on peer lists
We want to ensure that the string that is written to the policy file lists (suspicious_peers and allowlisted_peers) is not empty or not a valid hex representation of a pubkey.
Configuration menu - View commit details
-
Copy full SHA for 271be8e - Browse repository at this point
Copy the full SHA 271be8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d211fab - Browse repository at this point
Copy the full SHA d211fabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ccc600 - Browse repository at this point
Copy the full SHA 8ccc600View commit details -
policy: Add allow_new_swaps field to policy file
We used to handle the global allowance of swaps non persistent in the swap service. It is better to have all these kind of constraints (this is a kill-switch) in one place. This also adds some methods to set and get the value.
Configuration menu - View commit details
-
Copy full SHA for c2ed95e - Browse repository at this point
Copy the full SHA c2ed95eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 216cd75 - Browse repository at this point
Copy the full SHA 216cd75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fd9f99 - Browse repository at this point
Copy the full SHA 5fd9f99View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb39137 - Browse repository at this point
Copy the full SHA cb39137View commit details -
Configuration menu - View commit details
-
Copy full SHA for 834148f - Browse repository at this point
Copy the full SHA 834148fView commit details -
proto: Add a json marshaler to the policy message
When we generate the stubs from the proto the structs gets tagged with json:"omitempty". When we pass this message to a json marshaler for e.g. printing to stdout, the marshaler omits empty fields or fields that contain the default value for their type. What we want is to print all fields even if they are empty. This adds a custom marshaler that is configured to emit unpopulated values.
Configuration menu - View commit details
-
Copy full SHA for 7c82c6c - Browse repository at this point
Copy the full SHA 7c82c6cView commit details -
cln: Change return value of allowswaprequests call
We want to return the policy struct. This uses the generated struct from the peerswaprpc protos.
Configuration menu - View commit details
-
Copy full SHA for 19e6c13 - Browse repository at this point
Copy the full SHA 19e6c13View commit details -
swap: Use the policy to detrmine if a new swap is allowed
We now use the policy instead of the inmemory map to determine if we can start a new swap or not. In the case of a incoming swap request from a peer, this check is moved to the CheckRequestWrapperAction as we also want to send our peer a cancel message if we do not allow for swaps atm. Prior this commit the check was performed in the service methods and did not send a cancel message to the peer so that the peer could get stuck.
Configuration menu - View commit details
-
Copy full SHA for 0aedd55 - Browse repository at this point
Copy the full SHA 0aedd55View commit details -
Configuration menu - View commit details
-
Copy full SHA for b89dcdf - Browse repository at this point
Copy the full SHA b89dcdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99da20e - Browse repository at this point
Copy the full SHA 99da20eView commit details
Commits on Sep 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 575d88d - Browse repository at this point
Copy the full SHA 575d88dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c06d22e - Browse repository at this point
Copy the full SHA c06d22eView commit details -
lnd: Add custom marshaling options to the grpc rest gateway
We want to enforce snake case.
Configuration menu - View commit details
-
Copy full SHA for a85680f - Browse repository at this point
Copy the full SHA a85680fView commit details
Commits on Sep 29, 2022
-
This was a command for debugging purposes but somehow made it to the public api.
Configuration menu - View commit details
-
Copy full SHA for 7d89d32 - Browse repository at this point
Copy the full SHA 7d89d32View commit details -
swap: Add a check if the swap is done on data write failure
When writing data to the store fails, we return a failure. If this happens on swap creation we want the swap to be finished so that we can start a new swap
Configuration menu - View commit details
-
Copy full SHA for e9dc2b4 - Browse repository at this point
Copy the full SHA e9dc2b4View commit details -
cln: Add serialization of the getswap command return
The enums role and type have been returned as int values. For a better human readability we now return them as string
Configuration menu - View commit details
-
Copy full SHA for 90362f0 - Browse repository at this point
Copy the full SHA 90362f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81ea6ec - Browse repository at this point
Copy the full SHA 81ea6ecView commit details
Commits on Oct 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 86628e4 - Browse repository at this point
Copy the full SHA 86628e4View commit details