These are chat archives for ethereum/tutorials

14th
Aug 2017
Thomas Mullen
@t-mullen
Aug 14 2017 00:06
But why the bizarre encoding?
phalexo
@phalexo
Aug 14 2017 00:06
Bizarre?
Thomas Mullen
@t-mullen
Aug 14 2017 00:06
Yes, it seems completely arbitrary
And the comparison in the while loop of that function makes no sense either
It compares a dict to a string
phalexo
@phalexo
Aug 14 2017 00:08
I have not looked at the code, but the point is that it is EASY to find a hash, but difficult to find a particular kind of hash.
Thomas Mullen
@t-mullen
Aug 14 2017 00:08
I guess they mean while hashimoto_full(full_size, dataset, header, nonce)["result"] > target:
phalexo
@phalexo
Aug 14 2017 00:09
The whole mining process is to look at many hashes until you find one that has certain number of bits 0.
Thomas Mullen
@t-mullen
Aug 14 2017 00:10
I think I need to relook at the header format
phalexo
@phalexo
Aug 14 2017 00:10
Or simply put the resulting hash number is less than a certain threshold.
So one tests different nonces until one works
Thomas Mullen
@t-mullen
Aug 14 2017 00:13
I just build the cache once before hashing right
Not every time I check a hash?
phalexo
@phalexo
Aug 14 2017 00:13
Not sure what is being asked.
Thomas Mullen
@t-mullen
Aug 14 2017 00:15
The cache generation before creating the dataset
phalexo
@phalexo
Aug 14 2017 00:15
I have not seen this code, cache with what?
Sorry, I'm trying to implement this algorithm myself, so these questions may be a bit unusual
"From the seed, one can compute a 16 MB pseudorandom cache. "
"From the cache, we can generate a 1 GB dataset"
"Mining involves grabbing random slices of the dataset and hashing them together. "
phalexo
@phalexo
Aug 14 2017 00:21
So the cache is generated up front, before mining.
Thomas Mullen
@t-mullen
Aug 14 2017 00:22
Ok.
I think I get it. I'll try again later and see what I can come up with
phalexo
@phalexo
Aug 14 2017 00:22
It's like taking a document and hashing to a small digest before signing it.
Thomas Mullen
@t-mullen
Aug 14 2017 00:23
Definitely trickier than the Bitcoin algorithm I must say haha
That was dead easy to understand compared to this xD
Or maybe I'm just rusty
megacrypto
@megacrypto
Aug 14 2017 01:34
@phalexo so it means if you advertise you can pay 1 cent per click
By the way as you told me few days ago I use cmd for downloading it but my MIST never downloads the last 1000 blocks. It download it veryvery very very slowly
What should I do?
phalexo
@phalexo
Aug 14 2017 02:40
@hamostan I said use geth directly, geth --datadir d:\yourfolderforethereum --fast --cache 1024 --ipcpath d:\yourfolderforethereum\get.ipc
and then run mist --rpc d:\yourfolderforethereum\geth.ipc
phalexo
@phalexo
Aug 14 2017 02:59
@hamostan By the way, I think 5 cents is the minimum bid, as far as I know. Maybe Google has different pricing in different places.
megacrypto
@megacrypto
Aug 14 2017 03:07
@phalexo can you please tell me what should I do in CMD?
I really like tp create my own token but the blocks doesnt download when there is only 200
phalexo
@phalexo
Aug 14 2017 03:15
Did you run geth as I said in a few comments back?
megacrypto
@megacrypto
Aug 14 2017 03:15
Yes I clicked on geth,exe
What should I do next?
Geth.exe is downloading the blocks with its pwn CMD
phalexo
@phalexo
Aug 14 2017 03:21
What do you mean clicked?
megacrypto
@megacrypto
Aug 14 2017 03:22
I clicked on the geth.exe file
phalexo
@phalexo
Aug 14 2017 03:22
There is no clicking involved.
megacrypto
@megacrypto
Aug 14 2017 03:22
Ok so from the first what should I do?
phalexo
@phalexo
Aug 14 2017 03:22
Go to the command prompt.
megacrypto
@megacrypto
Aug 14 2017 03:22
Ok
phalexo
@phalexo
Aug 14 2017 03:23
Do you know where geth.exe is?
megacrypto
@megacrypto
Aug 14 2017 03:23
Yes
phalexo
@phalexo
Aug 14 2017 03:23
I thought you dowloaded most of the blockchain before.
megacrypto
@megacrypto
Aug 14 2017 03:23
Yes
I have
I just need 200 blocks tp be finished
phalexo
@phalexo
Aug 14 2017 03:24
what's the data folder?
megacrypto
@megacrypto
Aug 14 2017 03:24
F:/ethereum
In that there is a geth folder
And in the geth folder there is a chaindata folder
phalexo
@phalexo
Aug 14 2017 03:25
under that folder you have the chaindata folder?
megacrypto
@megacrypto
Aug 14 2017 03:25
Yes
phalexo
@phalexo
Aug 14 2017 03:25
Ok. Where is geth.exe"
?
megacrypto
@megacrypto
Aug 14 2017 03:25
In my c drive
Mist binaries unpacked
phalexo
@phalexo
Aug 14 2017 03:25
what is the full path?
megacrypto
@megacrypto
Aug 14 2017 03:26
C:\users/crypto/appdata/roaming/mist/binaries/geth/unpacked/geth.exe
phalexo
@phalexo
Aug 14 2017 03:27
with forward slashes on Windows?
megacrypto
@megacrypto
Aug 14 2017 03:27
Yes
Chaindata is like thia: f/ethereum/geth/chaindata
phalexo
@phalexo
Aug 14 2017 03:28
C:\users/crypto/appdata/roaming/mist/binaries/geth/unpacked/geth.exe --datadir f:\ethereum --fast --cache 1024
megacrypto
@megacrypto
Aug 14 2017 03:28
Ok so i have done this
But when should I open mist?
Cause the blocks always creats and there is no ending
phalexo
@phalexo
Aug 14 2017 03:28
what's the output?
megacrypto
@megacrypto
Aug 14 2017 03:29
What do you mean?
phalexo
@phalexo
Aug 14 2017 03:29
What is geth printing in the command window?
megacrypto
@megacrypto
Aug 14 2017 03:29
Proccessed
phalexo
@phalexo
Aug 14 2017 03:29
THat's all?
megacrypto
@megacrypto
Aug 14 2017 03:30
No
I will send the full one
INFO [08-14|08:02:22] Imported new state entries count=2 flushed
0 elapsed=9.530s processed=159 pending=755 retry=2 duplicate=0 unexpected=0
There are more and more of this massage. They doesnt finish
phalexo
@phalexo
Aug 14 2017 03:34
That's what it is supposed to do, there are always more blocks.
Open another command window
megacrypto
@megacrypto
Aug 14 2017 03:35
Ok
How?
When I click it gives the main one
The one that is working
Should I clode it?
phalexo
@phalexo
Aug 14 2017 03:36
stop clicking
go into your main Windows menu
megacrypto
@megacrypto
Aug 14 2017 03:36
Ok
phalexo
@phalexo
Aug 14 2017 03:37
Do you see it says "run"
megacrypto
@megacrypto
Aug 14 2017 03:38
No im using win 8.1
When i right click
There is an option
Open in a new window
Should I click on that?
phalexo
@phalexo
Aug 14 2017 03:38
cmd
cmd window
megacrypto
@megacrypto
Aug 14 2017 03:38
Yes for cmd it gives me the option
phalexo
@phalexo
Aug 14 2017 03:38
go there
megacrypto
@megacrypto
Aug 14 2017 03:38
To open it in new window
Ok
So there is a new one now
phalexo
@phalexo
Aug 14 2017 03:39
f:
cd \ethereum
dir
megacrypto
@megacrypto
Aug 14 2017 03:39
You mean cd f:/ethereum?
phalexo
@phalexo
Aug 14 2017 03:40
whatever works
megacrypto
@megacrypto
Aug 14 2017 03:40
Then?
phalexo
@phalexo
Aug 14 2017 03:40
dir
do you see geth.ipc
megacrypto
@megacrypto
Aug 14 2017 03:41
What do you mean by see?
phalexo
@phalexo
Aug 14 2017 03:41
is there a file?
megacrypto
@megacrypto
Aug 14 2017 03:42
I tried one with that name and it worked
But there is no file like that in my folder
But it works if i type it in cmd
phalexo
@phalexo
Aug 14 2017 03:42
what files folders do you see?>
megacrypto
@megacrypto
Aug 14 2017 03:42
Just 2 folders
Geth and keystore
phalexo
@phalexo
Aug 14 2017 03:43
open your browser
megacrypto
@megacrypto
Aug 14 2017 03:43
Ok
phalexo
@phalexo
Aug 14 2017 03:44
What happened?
megacrypto
@megacrypto
Aug 14 2017 03:45
This site cant be reached
It works if i type geth.ipc in cmd
If you want to see i have the file or not i think no need tp check cause when i type it in cmd it will works
phalexo
@phalexo
Aug 14 2017 03:47
Where is that file? Is it invisible?
What do you mean "it works" what happens?
megacrypto
@megacrypto
Aug 14 2017 03:47
No
I mean it gives me no error if I type it
And it starts doing something
phalexo
@phalexo
Aug 14 2017 03:48
Like what?
megacrypto
@megacrypto
Aug 14 2017 03:48
Type it now to see it?
phalexo
@phalexo
Aug 14 2017 03:49
What happens when you enter the geth.ipc
megacrypto
@megacrypto
Aug 14 2017 03:49
In my file browser for search nothing finds
But for cmd
I dont remember it but o guess something realeted tp syncing
Can you give me the code and i can type it to see what will happens
phalexo
@phalexo
Aug 14 2017 03:51
What happens when you enter "geth.ipc"?
megacrypto
@megacrypto
Aug 14 2017 03:51
With what?
After i open the window just type geth,ipc?
phalexo
@phalexo
Aug 14 2017 03:51
What do you see in the window?
megacrypto
@megacrypto
Aug 14 2017 03:52
I opened cmd and typed geth.ipc and told me is not recognized
phalexo
@phalexo
Aug 14 2017 03:52
Fine.
Go back to the window where geth is running.
megacrypto
@megacrypto
Aug 14 2017 03:53
Ok
phalexo
@phalexo
Aug 14 2017 03:54
ctrl-C
megacrypto
@megacrypto
Aug 14 2017 03:54
Ok
It stoped downloading and gived me some different massages
Ipc endpoint
Closed
\.\pipe\geth.ipc
phalexo
@phalexo
Aug 14 2017 03:56
ok. Check if you have a folder .\pipe
megacrypto
@megacrypto
Aug 14 2017 03:56
In f?
phalexo
@phalexo
Aug 14 2017 03:56
Yes
or maybe under F:\ethereum
megacrypto
@megacrypto
Aug 14 2017 03:57
No
phalexo
@phalexo
Aug 14 2017 03:58
Have to find where "pipe" is.
Windows search INCLUDE hidden folders/files
megacrypto
@megacrypto
Aug 14 2017 03:58
Ypu know ot gived me two slashes
\ .\pipe
Oh it doesnt show two slashes in the chat
I mean there was 2 \ and then .\pipe
phalexo
@phalexo
Aug 14 2017 04:00
Have to find where it is
megacrypto
@megacrypto
Aug 14 2017 04:01
Can i search from cmd?
phalexo
@phalexo
Aug 14 2017 04:02
Just use the Windows search with hidden folders/files
first go into Ethereum
and try
cd ".\pipe"
megacrypto
@megacrypto
Aug 14 2017 04:04
The system can not fine the path
I cant find that folder
phalexo
@phalexo
Aug 14 2017 04:04
you put a slash before "." right?
megacrypto
@megacrypto
Aug 14 2017 04:04
No
Tried with that but still no result
I tried to type it with twp slashes
phalexo
@phalexo
Aug 14 2017 04:05
two slashes
megacrypto
@megacrypto
Aug 14 2017 04:06
2 slashes .\pipe
phalexo
@phalexo
Aug 14 2017 04:06
\
\\.\pipe
megacrypto
@megacrypto
Aug 14 2017 04:06
Told me cmd does not support unc pathes as current directories
Yes tried that one that has 2 slashes at first but fi
But gived me cmd dows not support unc
phalexo
@phalexo
Aug 14 2017 04:07
Windows search with hidden folder/files.
I have to go to sleep.
megacrypto
@megacrypto
Aug 14 2017 04:08
I tried to search but nothong
Cani meet you tomorrow?
phalexo
@phalexo
Aug 14 2017 04:08
Windows search for F: drive
megacrypto
@megacrypto
Aug 14 2017 04:08
No reslut
phalexo
@phalexo
Aug 14 2017 04:09
Impossible that you searched so quickly
megacrypto
@megacrypto
Aug 14 2017 04:09
I searched before
phalexo
@phalexo
Aug 14 2017 04:09
Did not set flags to search for hidden folders
megacrypto
@megacrypto
Aug 14 2017 04:10
I set to see hidden files
So lets think i foind the pipe folder
What should i do next?
phalexo
@phalexo
Aug 14 2017 04:10
Clearly geth created a pipe at \\.\pipe\geth.ipc
have to find in which folder and connect mist to that.
megacrypto
@megacrypto
Aug 14 2017 04:11
How do that?
phalexo
@phalexo
Aug 14 2017 04:11
Restart geth to run overnight
megacrypto
@megacrypto
Aug 14 2017 04:12
I have restart it before but mist tries to download 200 more blocks with slowest speed
phalexo
@phalexo
Aug 14 2017 04:12
add --ipcpath f:\ethereum\geth.ipc
megacrypto
@megacrypto
Aug 14 2017 04:13
Geth.exe --datadir --fast --cache 1024 --ipcpath...?
phalexo
@phalexo
Aug 14 2017 04:13
No
megacrypto
@megacrypto
Aug 14 2017 04:14
So what?
phalexo
@phalexo
Aug 14 2017 04:14
geth --datadir f:\ethereum --fast --cache 1024 --ipcpath f:\ethereum\geth.ipc
megacrypto
@megacrypto
Aug 14 2017 04:15
Should i run the geth in the other cmd window?
Cause wi ctrlc i stoped it
phalexo
@phalexo
Aug 14 2017 04:15
It does not matetr
megacrypto
@megacrypto
Aug 14 2017 04:17
Ok typed it
The massages are exacflly yhe same fpr syncing
phalexo
@phalexo
Aug 14 2017 04:18
Does Windows 8 use back or forward slash for paths?
megacrypto
@megacrypto
Aug 14 2017 04:18
What so you mean?
phalexo
@phalexo
Aug 14 2017 04:18
\ or /
megacrypto
@megacrypto
Aug 14 2017 04:18
I think just \
phalexo
@phalexo
Aug 14 2017 04:19
Ok. let geth run
megacrypto
@megacrypto
Aug 14 2017 04:19
The other wondow with ipc should be open?
phalexo
@phalexo
Aug 14 2017 04:20
You can use it to check if geth created anything in f:\ethereum
megacrypto
@megacrypto
Aug 14 2017 04:20
Yes it has created
phalexo
@phalexo
Aug 14 2017 04:21
What?
megacrypto
@megacrypto
Aug 14 2017 04:21
Wjat should I do now?
I should run geth?
phalexo
@phalexo
Aug 14 2017 04:21
What did it CREATE?
megacrypto
@megacrypto
Aug 14 2017 04:22
Some files
Open with micrpsoft access
phalexo
@phalexo
Aug 14 2017 04:22
Like what?
megacrypto
@megacrypto
Aug 14 2017 04:23
136122
The name of the file
phalexo
@phalexo
Aug 14 2017 04:23
what is the size?
megacrypto
@megacrypto
Aug 14 2017 04:23
2 mg
phalexo
@phalexo
Aug 14 2017 04:24
Is it changing?
megacrypto
@megacrypto
Aug 14 2017 04:24
No
phalexo
@phalexo
Aug 14 2017 04:24
Fine. Let it run. I am off to sleep.
megacrypto
@megacrypto
Aug 14 2017 04:25
What should imdo?
Im so sprry fpr your sleep
Nemanja Milosevic
@NemanjaMilosevic
Aug 14 2017 13:43
hello guys
khanala
@khanala
Aug 14 2017 15:32
hi
i am creating ethereum wallet on maching (mist) and it is downloading blocks.
it seems to be stuck almost at the end.
if i restart the computer would it start from begining again?
can anybody answer?
phalexo
@phalexo
Aug 14 2017 15:45
No.
phalexo
@phalexo
Aug 14 2017 16:00
What is the "business" purpose, rationale for allowances within tokens? Thanks.
@khanala I meant, no it won't start from the beginning, unless you have corrupted the database.
Chloe Knecht
@caknecht
Aug 14 2017 17:37
so in the example code the give for contracts, some of it is deprecated
does anyone know where to find an updated version
idnal
@idnal
Aug 14 2017 23:30
i had the same question. this link kind of explains a work around but you have to use your own logic
im going to fire it up on test net and see