Skip to content

Instantly share code, notes, and snippets.

View askmike's full-sized avatar

Mike van Rossum askmike

View GitHub Profile
@sstone
sstone / eclair-ltc-demo.md
Last active June 22, 2019 06:53
Setting up eclair on Litecoin testnet

Running eclair on Litecoin

We need:

  • A fully synchronized Litecoin node on testnet, with Zmq notifications enabled (this is easily available on Linux only at the moment)
  • Our Lightning Node, eclair, which you can get there: https://github.com/ACINQ/eclair

We then create 3 directories for our eclair node, create an eclair.conf configuration file in each data directory, and all we need to change are the connections ports (so they can connect to the Litecoin client) and the fee rate (so that our opening/closing transactions will be relayed by the Litecoin client). And that’s it ! You can even see in the video that labels are still in BTC/milliBTC.

We then connected A to B, B to C, waited for all funding transactions to be confirmed and all channels announced, made a few payments, closed all channels and waited again for all closing transactions to be confirmed.

@benlesh
benlesh / app.js
Last active January 14, 2022 23:52
Angular - Basics of Unit Testing a Controller
var app = angular.module('myApp', []);
/* Set up a simple controller with a few
* examples of common actions a controller function
* might set up on a $scope. */
app.controller('MainCtrl', function($scope, someService) {
//set some properties
$scope.foo = 'foo';
$scope.bar = 'bar';