Commit 47991b16 authored by Sergey Shiktarev's avatar Sergey Shiktarev
Browse files

fix jcp source

parent eff6c730
......@@ -2,7 +2,7 @@
tar xvfz /node/jcp/jcp* --directory /node/jcp
rm /node/jcp/jcp*.gz
cd /node/jcp/$(ls /node/jcp)
cd /node/jcp
/bin/sh setup_console.sh /opt/jdk1.8.0_202 -force -en -install -jcp -jcryptop
cd /node
java ru.CryptoPro.JCP.Random.BioRandomConsole
......
average-block-delay = "40s"
initial-base-target = 10000000000
timestamp = 1567505972000
block-timestamp = 1567505992000
timestamp = 1568114619000
block-timestamp = 1568114639000
initial-balance = 100000000000000000
genesis-public-key-base-58 = "4opxpkEE3fyCHezcdyw1eVtonXDkGWyaJbzTjjnGQjLHYnKnLJdXcZaY83DgZz71xfdMmiAjBZRor1PjDh22Ju1G"
signature = "61qULWNEBQAhzGCbNnuKC1V5sc3Dqp7jNN7mvHscGDjnzgidFZuxerh3KsjuvzLdTqMn1MFA18dbQq7wwtjDVcbw"
genesis-public-key-base-58 = "FXvNDwGR6HUaRVA75F5JhtZnnRfrsPbcT4txZCeGUn1jt2VTYYCgtuEJA2uMp9ffW6S3dZPiDHbBLDVgb542Kxd"
signature = "vJiDSecVjdqH8D4wKNNCGUrrfRyAqdmebLkdfVbE97WSXyAKW2yV8eijJWqia5aM7HnFBAKqbNNe8iCgSCPwSne"
transactions = [
{
recipient = "3EJ3VkEP7sCsyftvZGxJnpR8Ys5AAz7nTxR"
amount = 33333333333333332
amount = 16666666666666662
recipient = "3EHLDoB9XLPmaW88feLJbKLRFbmjnfgYz5E"
}
{
recipient = "3EMzUip8eCfeaTj2UHBaSEAFHRvBNgQCpLb"
amount = 33333333333333334
amount = 16666666666666664
recipient = "3EL9nfNsRzEhNLJGrPs94N1T3mK78Dc4Jyo"
}
{
recipient = "3EKm8mz5G4q6qFYUKZ9ZJ5nHt2UVS8qnYyB"
amount = 33333333333333334
amount = 16666666666666666
recipient = "3ESpsQ5oxCVGwdBAwxCBo69hNFcNxcDtrfA"
}
{
amount = 16666666666666668
recipient = "3EFqD1C1sKFC9qUjFsNDN2fp2jiweooQ4sF"
}
{
amount = 16666666666666670
recipient = "3ERRpDDK8a6Paw37mAFSm7o8T9Q3cueP7wN"
}
{
amount = 16666666666666670
recipient = "3EWj7MJBqXR1aVjFYsrUHjnL2Q3gwScHdtT"
}
]
network-participants = [
{
public-key = "36hoAFELaVVfcvC4c1C7xUH8ZEsqPALSDogiKe9ZzD1cNE7ED7PGSNhwhkPzzVBKXAd8DFwAKMKKieC1zje2nqfg"
roles = [
"miner"
"permissioner"
"connection_manager"
]
public-key = "2WQdjzbCKHTrygsSfrgCYDnUye4SnffHgQwtvepoHwwCVa5jUWQyEaYjfeByXCzJBTzwsUeZ1ceJNfTWGDe9BcAU"
}
{
roles = [
"miner"
"permissioner"
"connection_manager"
]
public-key = "oxmetcedGrAtoMyWU8GL1AqnRnmktTqm5Z7nsrjeKr29wo4ST6sjoxvEzyaz51RgF4bHWfpx9R7uNar87xiqrKh"
}
{
roles = [
"miner"
"permissioner"
"connection_manager"
]
public-key = "5ujCALoBioGUkHCwWvfYG3kR4JmCDsEYU8Q6XJWkxzTggxYEcGJqUuw7tyJ5LQCRet2g1GcF55YtAZm4CXJ2evP7"
}
{
roles = [
"miner"
"permissioner"
"connection_manager"
]
public-key = "Q8BVJfELTLJpNgwZ5JFNLfUSw1ABsknkp9DRFBu5adjjMfeNurhLmFEgg8zxXnmqx4ZzEPsD2Y4q5bYiVhXok74"
}
{
public-key = "2eRHTa7khSbi5KiS4Vqt9GeiRfgkAngybcyDXTyWF5rnfpiy7ogjLHQPjRy3E31skDLKu6jbWisg6oprovoEwtEK"
roles = [
"miner"
"permissioner"
"connection_manager"
]
public-key = "2mJWHeH4xL8fwJBL9Y9hqx3H5Tuf1vGXCYupxicTJCJKhVGhWtv6kHj8QjmnqNYdHWBYQqUTur8dUvzChjRebvYb"
}
{
public-key = "3GEP2v6jdtoYcb7gYTDhD4fPHA6x4Hjeyi469f1budgicrRrUckCpwjuJmVuwu9uZrYhnLBrgQyKgbVLAsFg3FSU"
roles = [
"miner"
"permissioner"
"connection_manager"
]
public-key = "3rjWadAJHJh7tFPzAsUfWw8bAKQsSEcWZJsZMp5xsa5saXtFZ81HCXrgdMLqqndQN3hah6TJbSEmcsA5G1tXrtRp"
}
]
\ No newline at end of file
......@@ -4,6 +4,7 @@ from pyhocon import HOCONConverter
from optparse import OptionParser
from shutil import copyfile
from pprint import pprint
import urllib.request
import subprocess
import random
import codecs
......@@ -67,13 +68,14 @@ if __name__=="__main__":
print("Setting --existing-genesis to no, because there are no file " + '{}/genesis_backup.conf'.format(get_current_path()))
options.use_existing_genesis = 'no'
dst_jcp = "./tmp/"
jcp_name = 'jcp-2.0.39014.tar.gz'
dst_jcp = './tmp/'
if not os.path.exists(dst_jcp):
os.mkdir(dst_jcp)
if os.path.exists(dst_jcp):
shutil.rmtree(dst_jcp)
os.mkdir(dst_jcp)
urllib.request.urlretrieve('https://artifacts.vostokservices.com/repository/fileshare/node_build/jcp-2.0.39014.zip', "{}/{}".format(dst_jcp, jcp_name))
urllib.request.urlretrieve('https://artifacts.vostokservices.com/repository/fileshare/node_build/jcp-2.0.39014.tar.gz', "{}/{}".format(dst_jcp, jcp_name))
build_image_cmd = [docker, 'build', '-t', 'node_config_generator', '.']
subprocess.run(build_image_cmd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment