cleanup
This commit is contained in:
parent
b3d87fa542
commit
97791570f9
29
lib/node.js
29
lib/node.js
@ -494,33 +494,4 @@ Node.prototype.stop = function()
|
||||
web3.reset();
|
||||
}
|
||||
|
||||
function directICAP(address)
|
||||
{
|
||||
if (address[0] != 0)
|
||||
return '';
|
||||
|
||||
var d = toBase36(address);
|
||||
|
||||
while(d.length < 30)
|
||||
d = "0" + d;
|
||||
|
||||
return d;
|
||||
// return iban("XE", d);
|
||||
}
|
||||
|
||||
function toBase36(hex)
|
||||
{
|
||||
var c_alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
var a = hex.length;
|
||||
var ret = '';
|
||||
|
||||
for(; a > 0; a = a/36){
|
||||
ret = c_alphabet[a%36] + ret;
|
||||
console.log('a: ', a);
|
||||
console.log('ret: ', ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
module.exports = Node;
|
Loading…
Reference in New Issue
Block a user