]> git.bitcoin.ninja Git - rust-lightning/commit
Add `MAX_FUNDING_SATOSHIS` constant.
authorJean Pierre Dudey <jeandudey@hotmail.com>
Sat, 30 Jun 2018 14:32:23 +0000 (10:32 -0400)
committerJean Pierre Dudey <jeandudey@hotmail.com>
Sat, 30 Jun 2018 15:13:18 +0000 (11:13 -0400)
commit6707db6eae050d86bc3d1db9e85a737cd7efc3c6
treee62820e946fdc7a16cf62a48fa5e0ac4ebd0e8f5
parent5fa80d022ab5249bb7f20f62aa227676247ca821
Add `MAX_FUNDING_SATOSHIS` constant.

This constants defines the maximum value of `open_channel.funding_satoshis`,
currently it's defined to be 2^24 according to the BOLT #2 specification.
Also a test was added to check that the constant is never over 2,1x10^15
(maximum satoshis in bitcoin) if modified.

Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
src/ln/channel.rs
src/ln/channelmanager.rs