bitcoinj/bitcoinj — pull request #182 by cyberzac (2014-08-19 14:32:01+00:00)
Title: Payment channel API, client suggests channel time window

Lets the client request the duration of a payment channel. Servers can accept or deny the request.
The client's version message now takes an optional time window parameter. It defaults to 24h - 1 minute.
The server will by default allow channels to have 4 h to 1 week time window. There is a hard limit of 2 h on the server minimum time window, causing a IllegalArgumentsException, since it takes about 2 h to close the channel.