* The genesis hash of the blockchain where the channel is to be opened
*/
public void set_chain_hash(byte[] val) {
* The genesis hash of the blockchain where the channel is to be opened
*/
public void set_chain_hash(byte[] val) {
* A temporary channel ID, until the funding outpoint is announced
*/
public void set_temporary_channel_id(byte[] val) {
* A temporary channel ID, until the funding outpoint is announced
*/
public void set_temporary_channel_id(byte[] val) {
* Used to derive a revocation key for transactions broadcast by counterparty
*/
public void set_revocation_basepoint(byte[] val) {
* Used to derive a revocation key for transactions broadcast by counterparty
*/
public void set_revocation_basepoint(byte[] val) {
* A payment key to sender for transactions broadcast by counterparty
*/
public void set_payment_point(byte[] val) {
* A payment key to sender for transactions broadcast by counterparty
*/
public void set_payment_point(byte[] val) {
* Used to derive a payment key to sender for transactions broadcast by sender
*/
public void set_delayed_payment_basepoint(byte[] val) {
* Used to derive a payment key to sender for transactions broadcast by sender
*/
public void set_delayed_payment_basepoint(byte[] val) {
* The first to-be-broadcast-by-sender transaction's per commitment point
*/
public void set_first_per_commitment_point(byte[] val) {
* The first to-be-broadcast-by-sender transaction's per commitment point
*/
public void set_first_per_commitment_point(byte[] val) {
/**
* Creates a copy of the OpenChannel
*/
public OpenChannel clone() {
long ret = bindings.OpenChannel_clone(this.ptr);
/**
* Creates a copy of the OpenChannel
*/
public OpenChannel clone() {
long ret = bindings.OpenChannel_clone(this.ptr);
- OpenChannel ret_hu_conv = new OpenChannel(null, ret);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ OpenChannel ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new OpenChannel(null, ret); }