You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In composer.js , after the code that judge the type of client
if (conf.bLight && !params.lightProps){
var network = require('./network.js');
network.requestFromLightVendor(
'light/get_parents_and_last_ball_and_witness_list_unit',
{witnesses: arrWitnesses},
function(ws, request, response){
if (response.error)
return params.callbacks.ifError(response.error);
if (!response.parent_units || !response.last_stable_mc_ball || !response.last_stable_mc_ball_unit || typeof response.last_stable_mc_ball_mci !== 'number')
return params.callbacks.ifError("invalid parents from light vendor");
params.lightProps = response;
composeJoint(params);
}
);
return;
}
(line 383)
, the program judge it again.
if (conf.bLight && !lightProps)
throw Error("no parent props for light");
(line 436)
Why?
If I am using a light client, after I get all information from the vendor, the params.lightProps will be deleted and the lightProps must be null, and the the code will be an unnecessary code. Am I thinking right?
The text was updated successfully, but these errors were encountered:
In
composer.js
, after the code that judge the type of client(line 383)
, the program judge it again.
(line 436)
Why?
If I am using a light client, after I get all information from the vendor, the
params.lightProps
will be deleted and thelightProps
must be null, and the the code will be an unnecessary code. Am I thinking right?The text was updated successfully, but these errors were encountered: