These are chat archives for Nethereum/Nethereum

19th
Sep 2017
Art1987
@Art1987
Sep 19 2017 11:13
Hi guys
I have run geth --testnet
kai
@kaista82_twitter
Sep 19 2017 11:13
sup art
Art1987
@Art1987
Sep 19 2017 11:14
and changed IpcClient gethaddress to "\.\pipe\geth.ipc"
after that I have tried can unlock account
but it stuck
could you please help me out?
kai
@kaista82_twitter
Sep 19 2017 11:15
isnt it .\geth.ipc
Art1987
@Art1987
Sep 19 2017 11:15
it said that end point is ".\pipe\geth.ipc"
did I do something wrong?
kai
@kaista82_twitter
Sep 19 2017 11:15
try .\geth.ipc
Art1987
@Art1987
Sep 19 2017 11:16
ok
I got following exception - 'no key for given address or file'
I want to put it in testchain
kai
@kaista82_twitter
Sep 19 2017 11:17
erm
sec
is that better than before?
is it talking now
Art1987
@Art1987
Sep 19 2017 11:18
sorry, what do you mean?
kai
@kaista82_twitter
Sep 19 2017 11:18
since you changed to .\geth.ipc
and tried to do the same thign
is it different now?
Art1987
@Art1987
Sep 19 2017 11:19
yes, I got the exception that I have mentioned above
kai
@kaista82_twitter
Sep 19 2017 11:19
ok
is your keystore file in the keystore folder
?
Art1987
@Art1987
Sep 19 2017 11:19
yes
kai
@kaista82_twitter
Sep 19 2017 11:20
personal.unlockAccount("") is what your using right?
will it let you do it in console?
Art1987
@Art1987
Sep 19 2017 11:20
await web3.Personal.UnlockAccount.SendRequestAsync(
kai
@kaista82_twitter
Sep 19 2017 11:20
try to do personal.unlockAccount("password"); in geth
Art1987
@Art1987
Sep 19 2017 11:20
nope I am doing via visual studio using Nethereum.Web3
kai
@kaista82_twitter
Sep 19 2017 11:20
with the right pass ofc
just make sure the daemon can do it via console
Art1987
@Art1987
Sep 19 2017 11:24
ok, let me check it out
kai
@kaista82_twitter
Sep 19 2017 11:39
Art do you have two of the same keyfiles?
Art1987
@Art1987
Sep 19 2017 11:45
nope
it works fine when I run startgeth.bat
but when I run geth --testchain it throws exception
kai
@kaista82_twitter
Sep 19 2017 11:46
hmmm
Art1987
@Art1987
Sep 19 2017 11:46
so I assume I should put my keystore in testchain, but I have no idea where should I put my keystore
Art1987
@Art1987
Sep 19 2017 11:53
ignore my last sentence
thank you for your help
I appreciate your help
kai
@kaista82_twitter
Sep 19 2017 11:53
sorted?
Art1987
@Art1987
Sep 19 2017 11:53
yep
kai
@kaista82_twitter
Sep 19 2017 11:54
great
np
enjoy!
Art1987
@Art1987
Sep 19 2017 11:54
I put my kestore file in testchain, I forgot to do it :D
Art1987
@Art1987
Sep 19 2017 13:27
guys I have filled my account via faucet.ropsten.be, I have checked my balance is 6 ether, but running gether --testnet and check balanace via web3.Eth.GetBalance.SendRequestAsync(account), it return that my balance is 0
could you please help me?
what did I do wrong?
kai
@kaista82_twitter
Sep 19 2017 13:28
is account
the public address
did you Utils.UnitConversion.FromWei() ?
account should be a string of the public address
inc 0x i think
and fromwei should be used i think too
Art1987
@Art1987
Sep 19 2017 13:29
I got account calling following method - web3.Eth.Accounts.SendRequestAsync()
ChinhP
@Chinh-P
Sep 19 2017 13:58
Is it because your account balance in Testnet not yet sync, I guess
Art1987
@Art1987
Sep 19 2017 14:50
could you please help me out, how to sync or it should automatic?
kai
@kaista82_twitter
Sep 19 2017 14:51
your node should auto sync up
the blocks
Art1987
@Art1987
Sep 19 2017 14:52
weird, my balance is still 0
kai
@kaista82_twitter
Sep 19 2017 14:52
is there a test net block explorer you can check?
eth.getBalance(eth.coinbase);
do that in console
Art1987
@Art1987
Sep 19 2017 14:52
ok
kai
@kaista82_twitter
Sep 19 2017 14:53
or eth.accounts[0] or whatever it is
Art1987
@Art1987
Sep 19 2017 14:53
it returns 0 as well
kai
@kaista82_twitter
Sep 19 2017 14:54
did you web3.fromWei(eth.getBalance(eth.coinbase)); ?
Art1987
@Art1987
Sep 19 2017 14:54
but when I check via ropsten.etherscan.io it shows 6 ether
kai
@kaista82_twitter
Sep 19 2017 14:54
i think its web3.fromWei
ok
right
you can geth.exe removedb i think
to reset your chain data
oh
wait
Art1987
@Art1987
Sep 19 2017 14:54
ok, let me do it
kai
@kaista82_twitter
Sep 19 2017 14:54
did you try
miner.start()
i dont think it will help actually
but not sure
worth a try
Art1987
@Art1987
Sep 19 2017 14:55
sure :)
to say the truth I did it an hour ago and no luck
kai
@kaista82_twitter
Sep 19 2017 14:59
so you've run miner.start()
and also removedb'd
in which case im not sure why its not syncing up
Art1987
@Art1987
Sep 19 2017 14:59
only miner.start()
kai
@kaista82_twitter
Sep 19 2017 14:59
can you see blocks being imported to your local node?
Art1987
@Art1987
Sep 19 2017 15:00
I saw - Loaded most recent local full block
I assume it is what you ask
Art1987
@Art1987
Sep 19 2017 15:02
I saw it
kai
@kaista82_twitter
Sep 19 2017 15:02
is it still doing it now
Art1987
@Art1987
Sep 19 2017 15:03
I just run removeddb and started mine
kai
@kaista82_twitter
Sep 19 2017 15:03
k
Art1987
@Art1987
Sep 19 2017 15:03
lets see what will happen
Juan Blanco
@juanfranblanco
Sep 19 2017 15:03
you can connect to infura and not sync
Art1987
@Art1987
Sep 19 2017 15:05
@juanfranblanco so how I can sync?
Juan Blanco
@juanfranblanco
Sep 19 2017 15:45
sorry i was in the zone
kai
@kaista82_twitter
Sep 19 2017 15:45
:)
THE ZONE
Juan Blanco
@juanfranblanco
Sep 19 2017 15:46
when you connect to infura you don't need to sync it is a remote managed geth / parity server /s
Im pushing a new conversion with an implementation of BigDecimal (which is rather good, but needed some fixes) @ChinhPLQ
let me know how it goes :)
Note that using decimals with big whole numbers will round the less significant values when the number of digits are bigger than 29
so if wei has 18 decimal digits
kai
@kaista82_twitter
Sep 19 2017 15:49
omg im looking forward to this :D
Juan Blanco
@juanfranblanco
Sep 19 2017 15:50
you are a bit stuck when dealing with billions
their implementation it has 50 digits as the maximum precission
kai
@kaista82_twitter
Sep 19 2017 15:51
oh bugger, I was aiming to be the first trillionaire
Juan Blanco
@juanfranblanco
Sep 19 2017 15:52
lol, but I guess many people use the conversion for ERC20 tokens
and somebody might feel like doing a doge like coin
with insane precission :D
kai
@kaista82_twitter
Sep 19 2017 15:52
no i have actually had that issue tbh
it overflowed a decimal on our custom ethereum chain
as we had a coinbase that had a HUGE balance
hehe
but what you've done sounds brilliant
very helpful
Juan Blanco
@juanfranblanco
Sep 19 2017 15:54
actually it is neater using the BigDecimal as you are working with BigIntegers.. the class just moves the exponent
kai
@kaista82_twitter
Sep 19 2017 15:55
nice
Juan Blanco
@juanfranblanco
Sep 19 2017 15:55
but their implementation was missing the usual checks (i know those) like having no decimals, and weird bugs around positive exponents
hence it needs a good run (i need to add some unit tests to all the calculations)
overall conversion is fine
casting I guess it is going to fail based on what I have seen (ie.. BigDecimal to decimal)
I will most probably convert it the same as I do the conversion.. which is Parsing and letting it Round when the digits are over 29
so take it for a spin, whilst I tidy up some of the edge cases
kai
@kaista82_twitter
Sep 19 2017 15:58
ill pull it down asasp
Juan Blanco
@juanfranblanco
Sep 19 2017 16:00
cool, i think for enterprise implementations this will be needed as they deal with both big quantities and high precission (at least for storage)
Juan Blanco
@juanfranblanco
Sep 19 2017 19:41
ok push some changes and more tests.. it should be fine now
now you can do this 1234567812345678.12345678 * 12345678.12345678 = 15241576832799933607683.3208352565279684
garyng2000
@garyng2000
Sep 19 2017 22:18
hi is the ipclient deliberately excluded from the portable library ?