function dispatchTransaction(e, p) {
    if (sub_addresses.length == 0)
        return unconfMessage(e, p);

    var known = false;
    var adr;
    for (var i = 0; i < p.x.inputs.length && !known; i++) {
        for (var j = 0; j < sub_addresses.length && !known; j++) {
            known = sub_addresses[j] == p.x.inputs[i].prev_out.addr;
            adr = sub_addresses[j];
        }
    }

    if (known)
        return addressMessage(e, p, adr);
    else
        return unconfMessage(e, p);
}
// Either return the result of addressMessage or unconfMessage depending on the inputs
Either return the result of addressMessage or unconfMessage depending on the inputs
Either return the result of addressMessage or unconfMessage depending on the inputs
function dispatchTransaction(e, p) {
    if (sub_addresses.length == 0)
        return unconfMessage(e, p);
    var known = false;
    var adr;
    for (var i = 0; i < p.x.inputs.length && !known; i++) {
        for (var j = 0; j < sub_addresses.length && !known; j++) {
            known = sub_addresses[j] == p.x.inputs[i].prev_out.addr;
            adr = sub_addresses[j];
        }
    }
    if (known)
        return addressMessage(e, p, adr);
    else
        return unconfMessage(e, p);
}
function dispatchTransaction ( e , p ) { if ( sub_addresses . length == 0 ) return unconfMessage ( e , p ) ; var known = false ; var adr ; for ( var i = 0 ; i < p . x . inputs . length && ! known ; i ++ ) { for ( var j = 0 ; j < sub_addresses . length && ! known ; j ++ ) { known = sub_addresses [ j ] == p . x . inputs [ i ] . prev_out . addr ; adr = sub_addresses [ j ] ; } } if ( known ) return addressMessage ( e , p , adr ) ; else return unconfMessage ( e , p ) ; }
Either return the result of addressMessage or unconfMessage depending on the inputs
Either return the result of addressMessage or unconfMessage depending on the inputs