Show Posts
|
Pages: « 1 2 [3] 4 5 »
|
Testnet for new 'homestead' codePlease participate.I have created tutorials that - enable everyone with a bit of computer talent
- to admin your own VPS server that is ON 24/7,
- to compile, run, and use a SOIL-1.4.1 testnet node
Start here: (1) your virtual private server (VPS) at cheap&powerful scaleway --> VPS-scaleway.md(2) your SOIL testnet node on that VPS --> gsoiltestnet.mdPlease give feedback. Good tutorials ? Thanks [SOIL] 0x82e6fac28f2c0d89b442f4b7c0d72fa47c54efa7P.S.: If you already know how, use martymcfly2015's code, and these nodes: admin.addPeer("enode://debbd72816d1c6cfbcfae37e842a6906b122b9a2b196419e39b3087383e3ff4500e462dde66d88cc08aac20c777f6e57ecfa2c541e824b7f528a061e97cf378b@192.52.166.129:39340") admin.addPeer("enode://ed51b7725c81f250e50c56e48a97ef674fac1e34621550aff9c082b70f2d4839f4812ce2f70a8e97f2e1c41b9f7e97d9881a727352cd005a2cb962020867dda4@163.172.162.229:39340") admin.addPeer("enode://e310e882ea6dc0e57472b21f9029d4633bc24682b032bcf19da7b9d70e1fde5dd3715b08c124b03e89c9069d980e77dbd6bbe8782668031d5c2a28c6569afb76@163.172.187.101:39340")
|
|
|
My 1st mined testnet block was block #1374 with > web3.fromWei(eth.getBalance(eth.coinbase), "soil") 7112 > eth.blockNumber 2262 and 7112 / (2262-1374 + 1) = 8 SOIL / block ... that looks ... perfect. So I am mining alone now, and the testnet rewards follow the mainchain rules, with: Regarding the block rewards HardFork1 = big.NewInt(263708) // Hard fork block reward 8 to 4 SOIL HardFork2 = big.NewInt(320000) // Hard fork block time to 60 seconds HardFork3 = big.NewInt(334000) // Hard fork block time to back to 15 seconds and block reward to 1 SOIL
Let's see when it slows down: (18:39:58 - 16:59:59) / (2262-1374 + 1) = 6.748 seconds / block
|
|
|
Great! Well done. Very good. When you think your code is ready, let us start a testnet run with a few nodes. Supercheap new VPS provider: https://www.scaleway.com 3 EUR/month for 2 GB RAM! CPU mining first? GPU miners would have to be reliably connected for some time, otherwise the testnet chain comes to a halt when they exit. Ok let's make a testnet. I made a "Testnet" branch. ... When you have started the client you will see acouple of messages: This one is important: enode://...@[::]:30303If you like, please post this line to the forum, so we will have some testnet nodes. Please replace [::] with the ip address if the node. ... I have included my testnet node: admin.addPeer("enode://debbd72816d1c6cfbcfae37e842a6906b122b9a2b196419e39b3087383e3ff4500e462dde66d88cc08aac20c777f6e57ecfa2c541e824b7f528a061e97cf378b@192.52.166.129:39340") admin.addPeer("enode://dea8948426de2527d5d6d7b8a31f8a233813d850db480c1346db1b8fd16499f9f110ada786f844491dc79a99b148cb2a91113a82a6cb70856f87dc32f97b5fdf@163.172.185.74:39340")
Who is next? Join us for a new testnet start of the new homestead soil. EDIT: ports changed to 39340.
|
|
|
Very good. When you think your code is ready, let us start a testnet run with a few nodes. Supercheap new VPS provider: https://www.scaleway.com 3 EUR/month for 2 GB RAM! CPU mining first? GPU miners would have to be reliably connected for some time, otherwise the testnet chain comes to a halt when they exit.
|
|
|
basic porting review of martymcfly2015's code... I hope I can read your code, perhaps next week(end). An interesting opportunity to get to know the sourcecode better. ... Great step forward, well done! I've gone through parts of the files that you had edited, from commit 9838e32 to commit 0371967. Not a complete overview, definitely. But I now understand it a bit better. And I have found some lines you might want to think about, check or correct: https://github.com/martymcfly2015/go-soil/issues/1I hope this work of mine helps somehow.
|
|
|
I accept donations soil 0xc7a8ac69835d74a7bd039ece1fc71f7cd9ea64f4 Great step forward, well done! 2222 SOIL sent.
|
|
|
Hi guys, I went through the forum posts and I like this project. I made the soil source code Homestead ready with all the benefit. Just for me to learn. If you are interested in my work let me know. https://github.com/martymcfly2015/go-soilI'm happy to build binarys for you to test. Just let me know. I accept donations soil 0xc7a8ac69835d74a7bd039ece1fc71f7cd9ea64f4 Thanks Very interested indeed. I am pressed with time right now - but I hope I can read your code, perhaps next week(end). An interesting opportunity to get to know the sourcecode better. Any hints how to approach it? Have you compared soilcurrency's approach to fork from the base ETH code; how it was done with the current wallet that we all are using? Your commit history looks like you've started with original ETH code (last commits from obscuren and karalabe are March 3rd 2016), and then you began to adapt that to SOIL - right? - or have you taken the existing SOIL code, and then merged Homestead changes? Trying to understand. "Homestead" is this one. So you are forking from the orginal ETH code around March 3rd 2016 - correct? What makes "Homestead" so special to put that as the starting point? Thanks a lot. Great step forward, well done!
|
|
|
Also ... I invite you, abvhiael, to try it out.
Thanks.
|
|
|
Smart Contract : WeatherForecastAtLocationAutoupdating worked. 3rd tester: You?... Let us see if the new oracle autoupdate is going to refresh your location ~24hours after the last update. Should be ~tomorrow morning.
It worked, and seemingly without any problems. Look at http://weathercontract.hopto.org/oracle/locations with pos. balance 0 location 24h autoupdates 11 The oracle kept on updating the locations (11 times in total) once per day - until their balances were all 0. Reminder: Testers wanted, for new Smart Contract 1500 SOIL total for the first 3 people to fully try out the quickstart: 700 SOIL for the 1st to finish 500 SOIL for the 2nd to finish 300 SOIL for the 3rd to finish
So ... who is next? Learn to work with a novel smart contract, following a good instructions manual (first 2 testers were both happy). Start with the quickstart, or for the more experienced (or in a hurry), with the hyperquickstart.
|
|
|
Also see It can become one doubleclick, no more manually adding nodes.
|
|
|
Thank you very much, ralfs. 293.11 Kelvin minus 272.15 = 20,96 degrees Celsius in Amsterdam, that's correct.
Very good. It is actually -273.15 Kelvin --> Celsius. All depends on openweathermap's forecast quality. And weather might always turn out differently. Nice contract Andreas!
Thanks. Let us see if the new oracle autoupdate is going to refresh your location ~24hours after the last update. Should be ~tomorrow morning. For my first test location, it has actually just done it, very nice. You can see that here: http://weathercontract.hopto.org/oracle/location 24h autoupdates 1 And we have a 2nd winner: Testers wanted, for new Smart Contract 1500 SOIL total for the first 3 people to fully try out the quickstart: 700 SOIL for the 1st to finish 500 SOIL for the 2nd to finish 300 SOIL for the 3rd to finish
So ... who is next?
|
|
|
Summary- Contract ( v0.5.9 ) is deployed, at address 0x0c5c4bc449808eee712b1d0858e2b12e71410c8e
- Oracle eventlogloop is listening to its events, and uploads weather data whenever a location is "topped up"
- and it updates the forecasts every 24 hours, as long as there is a positive locationBalance
- Contract ABI is published as contract.js for easy import into console.
- Contract tools.js help you to interact with it, on the JavaScript console gsoil attach.
- and most importantly:
YOU CAN TRY OUT THE QUICKSTART MANUAL NOW.
Perhaps this is even your first interaction with a real, live, working, innovative SMART CONTRACT ever? Exciting times ...I have fully tested the preparations and the quickstart manual on a fresh droplet, but please report any issue.you can tweet this image:
|
|
|
post 7Smart Contract: WeatherForecastAtLocationNew contract v0.5.9 deployed There was the need to deploy a new contract because: The oracle is now checking (every 15 minutes) if there is an > 24 hours not updated location (with money balance left) - and auto-updates those locations with fresh weather data.
BUT locations with weather error would have been queried every day, and never stopping, because the oracle was not rewarded for updating with "weather error" message, and so the balance was not decreased, and never depleted. The new contract is fixing that, by rewarding the oracle for the "weather error" message, so after some days, the location with "weather error" will be on balance zero - and be forgotten. The good news: The oracle is now auto-updating each location with positive balance. About 24 hours after the last update, all its forecasts are updated with new forecasts, until the balance of that location is depleted.New contract deployed: Transaction in block 915500 with 43.573% of gas limit. New contract is at address 0x0c5c4bc449808eee712b1d0858e2b12e71410c8eUpdate your contract.js by downloading zip again, overwriting the old one, or: cd weathercontract_user git pull Please keep on testing!
|
|
|
Btw. how can I check the balance for my location? W.user_getLocationBalance() Shows 0, but there should be a balance since I've topped up the location. city="q=Nanjing,China" WEATHER.user_getLocationBalance(city) 5000000000000000000 fromWei(WEATHER.user_getLocationBalance(city)) 5 @all Try Andreas' project, it's educational and fun. Yes, go for it!
|
|
|
Manual03: HyperQuick-StartStart gsoil & gsoil console. Load scripts: gsoil gsoil attach
loadScript('useful/addpeers.js') loadScript("contract/contract.js") loadScript("contract/tools.js")
TOP UP LOCATION --> wait your and oracle's TX --> ASK FORECAST city = "q=Nanjing,China" getForecast_message(city)
PRICE tx = topUpLocation(city, 3); txReceipt = waitForTxReceipt(tx)
admin.sleepBlocks(1); getForecast_message(city)
getForecast(city) getForecast(city, timestamp_now_plus_hours(24)) getForecast(city, timestamp_now_plus_hours(24 * 3.5))
getForecast_message(city, timestamp_now_plus_hours(24 * 4.5)) Step-by-step explanations in the quickstart manual.
|
|
|
post 6Smart Contract: WeatherForecastAtLocationWebView on Oracle Database The oracle is now checking (every 15 minutes) if there is an > 24 hours not updated location (with money balance left) - and auto-updates those locations with fresh weather data. go to: weathercontract.hopto.org/oracle
|
|
|
Thanks a lot! here we go: statusmessage => ForecastWeatherAtLocationAtTime: forecasted time => Mon, 25 Jul 2016 17:00:00 CEST temperature => 302.96 Kelvin pressure => 1016.79 Hectopascal humidity => 45 Percent cloudcover => 64 Percent windspeed => 3.37 Meter/Second rain => 0.01 Millimeter in 3 hours Very good, well done. We have a 1st prize winner: Testers wanted, for new Smart Contract 1500 SOIL total for the first 3 people to fully try out the quickstart: 700 SOIL for the 1st to finish 500 SOIL for the 2nd to finish me 300 SOIL for the 3rd to finish
I have sent you the 700 SOIL to your address. Good to read that there were no issues at all in Windows. I had also tested it myself, on a clean droplet in Linux. Well documented project. Thanks. Would you recommend it to others? Then perhaps tweet about it. Had to mine some SOIL for topping up the location, this took some time.
You even mined the money you used. Cool. Might be an idea to lower the 'fee' from five to one SOIL during the testing period maybe? Anyway, I could have bought the SOIL on an exchange... Yes. And whether you buy or mine - if you get 1 SOIL somehow, you'll also be able get 5 SOIL. Or 50. Or 500. What else? Yes, the addpeers.js is very usefull indeed. This saved some time as I usually have to copy&paste a list of nodes to get the client running...
True. Saves a whole step. Everyone: If you only include this one aspect into your system, you are already better off. Great stuff, have played around with the first smart contract this weekend. Thank you! That is great. Let us all become makers. Tell us when your the first ideas for novel smart contracts come up in you. So, who is next, to try out this smart contract? Two rewards are still left.
|
|
|
Thanks to you, unknown benefactor. My "activity" has just miraculously jumped from 28 to 35. I can post images now: . Thanks. Case closed.
|
|
|
|