fix: invoice transaction pay need update the slate height (#115)

This commit is contained in:
Gary Yu 2019-05-21 17:00:19 +08:00 committed by Yeastplume
parent 4b2bc5fc49
commit a45f8d3e9f

View file

@ -308,6 +308,9 @@ where
None => None, None => None,
}; };
// update slate current height
ret_slate.height = w.w2n_client().get_chain_height()?;
let context = tx::add_inputs_to_slate( let context = tx::add_inputs_to_slate(
&mut *w, &mut *w,
&mut ret_slate, &mut ret_slate,