Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Update to geth 1.5.8 #1639

Merged
merged 49 commits into from
Feb 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
aa660e3
updated solc again
frozeman Dec 15, 2016
cc0743e
updated solc to 0.4.6
frozeman Dec 15, 2016
4ed5b07
Merge branch 'develop' of github.com:ethereum/mist into develop
frozeman Dec 16, 2016
5fa0e01
Update geth to 1.5.5 (#1520)
evertonfraga Dec 16, 2016
39fe429
Merge branch 'develop' of github.com:ethereum/mist into develop
frozeman Dec 16, 2016
075831c
Merge branch 'master' into develop
frozeman Dec 16, 2016
0a0ceed
fixes the immediate startup issue (#1540)
frozeman Dec 20, 2016
c26a303
fixes #1532 (#1534)
frozeman Dec 20, 2016
59b918f
[ESLint] autofix 'modules' (#1536)
luclu Dec 20, 2016
5e6dc73
[ESLint] update customProtocols.js (#1538)
luclu Dec 20, 2016
dca7ffa
added postinstall step for interface dir (#1546)
luclu Dec 22, 2016
d2f5d67
[ESLint] update 'scripts' (#1539)
luclu Dec 22, 2016
3aa4f74
Adding badges for (up|out)dated dependencies (#1525)
evertonfraga Dec 28, 2016
24d9b5e
Changes to splash screen and onboarding (#1545)
alexvansande Jan 6, 2017
166e4e0
Error pages (#1559)
frozeman Jan 6, 2017
d59a0ba
[readme] minor typo
BitcoinErrorLog Jan 7, 2017
75dd12c
[mistAPI] add 'mist.solidity.version' (#1586)
luclu Jan 13, 2017
b08925c
fixes (#1600)
luclu Jan 18, 2017
eb9c3ef
add hash and queries to breadcrumb (#1596)
alexvansande Jan 18, 2017
36e89b3
fix offline-startup edge-case (#1571)
luclu Jan 18, 2017
7825db9
NSIS installer (#1499)
tgerring Jan 19, 2017
032ea1d
[travis] various fixes (#1601)
luclu Jan 20, 2017
7e102af
Adjust formatter for addPeer #1543 (#1599)
luclu Jan 23, 2017
cc27bc3
[gulp] new task 'upload-binaries' (to github) (#1578)
luclu Jan 23, 2017
860f60c
make sure all sendTransaction is valid HEX (#1606)
frozeman Jan 23, 2017
e879347
Adding a develop menu option to open Remix IDE (#1608)
evertonfraga Jan 24, 2017
e8dd568
Update app.nl.i18n.json (#1609)
h3ll0fr13nd Jan 25, 2017
47570c9
adjust content order, feather and window size (#1585)
luclu Jan 25, 2017
2459a6e
fix mention-bot (#1587)
luclu Jan 25, 2017
a617510
Improve importer (#1598)
luclu Jan 25, 2017
21a5b9b
Dutch translation improved (#1610)
h3ll0fr13nd Jan 26, 2017
fdd2eb4
change window height (#1612)
luclu Jan 27, 2017
77fccdb
Allow for operators while parsing 'mist.solidity.version' (#1613)
luclu Jan 27, 2017
838bb9f
Sync Dutch translation file to English + corrections (#1616)
h3ll0fr13nd Jan 27, 2017
5d790a2
update i18n files according to english base files (#1618)
luclu Jan 28, 2017
5821038
[travis] don't wait for mac build on PR check (#1611)
luclu Jan 31, 2017
5ecbc08
[gulp] don't build NSIS installer on 'wallet' task (#1614)
luclu Jan 31, 2017
d9bb803
Bump version string to 0.8.9 (#1626)
luclu Jan 31, 2017
9b4e01a
Spectron testing suite (#1553)
evertonfraga Feb 1, 2017
334f6c2
Fix raw data display ('0x') in data-less TXs (#1625)
luclu Feb 1, 2017
0c7ade6
Update dependencies (#1623)
luclu Feb 1, 2017
b4f24cd
udpate (#1622)
luclu Feb 1, 2017
e099e25
Cleaner mocha-in-browser test results (#1630)
evertonfraga Feb 1, 2017
1113186
Removing DavidDM broken badges (#1631)
evertonfraga Feb 1, 2017
c9a4a40
Update geth to 1.5.5 (#1520) (#1522) (#1633)
evertonfraga Feb 1, 2017
83c7f59
Merge branch 'master' into develop
evertonfraga Feb 1, 2017
9d11d10
Update geth to 1.5.8 (#1635)
luclu Feb 2, 2017
a974f69
Merge branch 'master' into develop
evertonfraga Feb 2, 2017
fccbf03
Add gulp task 'update-nodes' (#1637)
luclu Feb 2, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions clientBinaries.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,85 +2,85 @@
{
"clients": {
"Geth": {
"version": "1.5.5",
"version": "1.5.8",
"platforms": {
"linux": {
"x64": {
"download": {
"url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.5.5-ff07d548.tar.gz",
"url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.5.8-f58fb322.tar.gz",
"type": "tar",
"sha256": "4f36d6df25c37eb33829407d8bf2cea209cc412b3443319e2430db18581c7c01",
"bin": "geth-linux-amd64-1.5.5-ff07d548/geth"
"md5": "628cde7015ee4b90a8befbe52ca08e6f",
"bin": "geth-linux-amd64-1.5.8-f58fb322/geth"
},
"bin": "geth",
"commands": {
"sanity": {
"args": ["version"],
"output": [ "Geth", "1.5.5" ]
"output": [ "Geth", "1.5.8" ]
}
}
},
"ia32": {
"download": {
"url": "https://gethstore.blob.core.windows.net/builds/geth-linux-386-1.5.5-ff07d548.tar.gz",
"url": "https://gethstore.blob.core.windows.net/builds/geth-linux-386-1.5.8-f58fb322.tar.gz",
"type": "tar",
"sha256": "6767651e4e5b34acaa6c53079d66a9047acb74e80fd25f570bf63da87d0ce863",
"bin": "geth-linux-386-1.5.5-ff07d548/geth"
"md5": "91170b9010dc1fd96cea700c1242faee",
"bin": "geth-linux-386-1.5.8-f58fb322/geth"
},
"bin": "geth",
"commands": {
"sanity": {
"args": ["version"],
"output": [ "Geth", "1.5.5" ]
"output": [ "Geth", "1.5.8" ]
}
}
}
},
"mac": {
"x64": {
"download": {
"url": "https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.5.5-ff07d548.tar.gz",
"url": "https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.5.8-f58fb322.tar.gz",
"type": "tar",
"sha256": "a5b3ae5b7e9d91a0ca42ca24b079631578cdccce036cc5b1f0035cd0d9706b53",
"bin": "geth-darwin-amd64-1.5.5-ff07d548/geth"
"md5": "7ac3eae96132d49564bcf0f352081283",
"bin": "geth-darwin-amd64-1.5.8-f58fb322/geth"
},
"bin": "geth",
"commands": {
"sanity": {
"args": ["version"],
"output": [ "Geth", "1.5.5" ]
"output": [ "Geth", "1.5.8" ]
}
}
}
},
"win": {
"x64": {
"download": {
"url": "https://gethstore.blob.core.windows.net/mist/geth-windows-amd64-1.5.5-ff07d548-mist-fix.zip",
"url": "https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.5.8-f58fb322.zip",
"type": "zip",
"sha256": "6b9e65ccac8a07535fbfd003662cdd4f69289f93947689c715d10c6486e703d7",
"bin": "geth-windows-amd64-1.5.5-ff07d548\\geth.exe"
"md5": "935239a6a1910eb17fbc3a483c297086",
"bin": "geth-windows-amd64-1.5.8-f58fb322\\geth.exe"
},
"bin": "geth.exe",
"commands": {
"sanity": {
"args": ["version"],
"output": [ "Geth", "1.5.5" ]
"output": [ "Geth", "1.5.8" ]
}
}
},
"ia32": {
"download": {
"url": "https://gethstore.blob.core.windows.net/mist/geth-windows-386-1.5.5-ff07d548-mist-fix.zip",
"url": "https://gethstore.blob.core.windows.net/builds/geth-windows-386-1.5.8-f58fb322.zip",
"type": "zip",
"sha256": "74ef8372ae7748c1016a8fcfe2d49574b52a2780913081cf0184fb197f26f01c",
"bin": "geth-windows-386-1.5.5-ff07d548\\geth.exe"
"md5": "587c29eb2c8256505923392e537d0fd1",
"bin": "geth-windows-386-1.5.8-f58fb322\\geth.exe"
},
"bin": "geth.exe",
"commands": {
"sanity": {
"args": ["version"],
"output": [ "Geth", "1.5.5" ]
"output": [ "Geth", "1.5.8" ]
}
}
}
Expand Down
77 changes: 77 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const fs = require('fs');
const got = require('got');
const Q = require('bluebird');
const githubUpload = Q.promisify(require('gh-release-assets'));
const cmp = require('semver-compare');
const parseJson = require('xml2js').parseString;

const options = minimist(process.argv.slice(2), {
string: ['platform', 'walletSource'],
Expand Down Expand Up @@ -413,6 +415,81 @@ gulp.task('get-release-checksums', (done) => {
return done();
});

gulp.task('update-nodes', (cb) => {
const clientBinaries = require('./clientBinaries.json'); // eslint-disable-line global-require
const clientBinariesGeth = clientBinaries.clients.Geth;
const localGethVersion = clientBinariesGeth.version;
const newJson = clientBinaries;
const geth = newJson.clients.Geth;

// Query latest geth version
got('https://api.github.com/repos/ethereum/go-ethereum/releases/latest', { json: true })
.then((response) => {
return response.body.tag_name;
})
// Return tag name (e.g. 'v1.5.0')
.then((tagName) => {
const latestGethVersion = tagName.match(/\d+\.\d+\.\d+/)[0];

// Compare to current geth version in clientBinaries.json
if (cmp(latestGethVersion, localGethVersion)) {
geth.version = latestGethVersion;

// Query commit hash (first 8 characters)
got(`https://api.github.com/repos/ethereum/go-ethereum/commits/${tagName}`, { json: true })
.then((response) => {
return String(response.body.sha).substr(0, 8);
})
.then((hash) => {
let blobs; // geth blobs

// Query Azure assets for md5 hashes
got('https://gethstore.blob.core.windows.net/builds?restype=container&comp=list', {
xml: true,
})
.then((response) => {
parseJson(response.body, (err, data) => {
blobs = data.EnumerationResults.Blobs[0].Blob;
});

// For each platform/arch in clientBinaries.json
_.keys(geth.platforms).forEach((platform) => {
_.keys(geth.platforms[platform]).forEach((arch) => {
// Update URL
let url = geth.platforms[platform][arch].download.url;
url = url.replace(/\d+\.\d+\.\d+-[a-z0-9]{8}/, `${latestGethVersion}-${hash}`);
geth.platforms[platform][arch].download.url = url;

// Update bin name (path in archive)
let bin = geth.platforms[platform][arch].download.bin;
bin = bin.replace(/\d+\.\d+\.\d+-[a-z0-9]{8}/, `${latestGethVersion}-${hash}`);
geth.platforms[platform][arch].download.bin = bin;

// Update expected sanity-command version output
geth.platforms[platform][arch].commands.sanity.output[1] =
String(latestGethVersion);

// Update md5 checksum
blobs.forEach((blob) => {
if (String(blob.Name) === _.last(geth.platforms[platform][arch].download.url.split('/'))) {
const sum = new Buffer(blob.Properties[0]['Content-MD5'][0], 'base64');

geth.platforms[platform][arch].download.md5 = sum.toString('hex');
}
});
});
});
})
// Update clientBinares.json
.then(() => {
fs.writeFile('./clientBinaries.json', JSON.stringify(newJson, null, 4));
cb();
});
});
} else cb(); // Already up-to-date
})
.catch(cb);
});

gulp.task('download-signatures', (cb) => {
got('https://www.4byte.directory/api/v1/signatures/?page_size=20000&ordering=created_at', {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
"mocha": "^3.2.0",
"optimist": "^0.6.1",
"run-sequence": "^1.2.1",
"semver-compare": "^1.0.0",
"shelljs": "^0.7.6",
"spectron": "3.3.0"
"spectron": "3.3.0",
"xml2js": "^0.4.17"
}
}
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3508,6 +3508,10 @@ sanitize-filename@^1.6.1:
dependencies:
truncate-utf8-bytes "^1.0.0"

sax@>=0.6.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.1.tgz#7b8e656190b228e81a66aea748480d828cd2d37a"

secp256k1@^3.0.1:
version "3.2.2"
resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.2.2.tgz#2103620789ca2c9b79650cdf8cfc9c542be36597"
Expand All @@ -3526,6 +3530,10 @@ seek-bzip@^1.0.3:
dependencies:
commander "~2.8.1"

semver-compare@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"

semver-diff@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36"
Expand Down Expand Up @@ -4327,10 +4335,23 @@ xdg-basedir@^2.0.0:
dependencies:
os-homedir "^1.0.0"

xml2js@^0.4.17:
version "0.4.17"
resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.17.tgz#17be93eaae3f3b779359c795b419705a8817e868"
dependencies:
sax ">=0.6.0"
xmlbuilder "^4.1.0"

xmlbuilder@8.2.2:
version "8.2.2"
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773"

xmlbuilder@^4.1.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-4.2.1.tgz#aa58a3041a066f90eaa16c2f5389ff19f3f461a5"
dependencies:
lodash "^4.0.0"

xmldom@0.1.x:
version "0.1.27"
resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.27.tgz#d501f97b3bdb403af8ef9ecc20573187aadac0e9"
Expand Down