Jump to content




Krist - Minable currency that works across servers (paste updated)


  • You cannot reply to this topic
1697 replies to this topic

#461 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 18 May 2015 - 06:57 PM

Nice! That brings up an interesting question for me. What happens if a block is repeated? Would it just be rejected, or would it cause a loop?

#462 Tron

  • Members
  • 63 posts
  • LocationMinecraftia

Posted 19 May 2015 - 01:49 AM

I'm still testing it (So it may not work very well), but if anyone wants a websocket that updates when the block or work changes you can use "ws://s2.galatical.com:8080" To receive a "NewBlock:<lastblock>" when there is a new block and "WorkChanged:<getwork>" when the work changes. The server updates 10 times per second, but I can speed this up if it is too slow.

EDIT: It now works and upon connection sends "LastBlock:<lastblock>" and then "Work:<getwork>" I don't really think I have anything left to add now, but if anyone has a suggestion I might be able to add it.

Edited by luker2009, 19 May 2015 - 02:09 AM.


#463 3d6

  • Members
  • 336 posts

Posted 19 May 2015 - 02:12 AM

View PostYevano, on 18 May 2015 - 06:57 PM, said:

Nice! That brings up an interesting question for me. What happens if a block is repeated? Would it just be rejected, or would it cause a loop?
Neither, it would work as usual. I'm almost positive there have been many collisions by now. For mining purposes only 12 digits are used, but internally the hashes are 64 digits, so a real collision will never happen.

View Postluker2009, on 19 May 2015 - 01:49 AM, said:

I'm still testing it (So it may not work very well), but if anyone wants a websocket that updates when the block or work changes you can use "ws://s2.galatical.com:8080" To receive a "NewBlock:<lastblock>" when there is a new block and "WorkChanged:<getwork>" when the work changes. The server updates 10 times per second, but I can speed this up if it is too slow.

EDIT: Made it work, now I'm making it give you the work and block upon connection.
Ten requests a second to my node? 0_o

This is a great invention thing, but it's a sizable fraction of what the node handles anyways right now!

You should only really need to do getwork calls like once a minute - it's changed like fifty times, ever.

Do you plan on releasing a miner that utilizes this technology? A modification of the one you made in the CC mining days maybe?

#464 Tron

  • Members
  • 63 posts
  • LocationMinecraftia

Posted 19 May 2015 - 02:17 AM

View Postcossacksson, on 19 May 2015 - 02:12 AM, said:

Ten requests a second to my node? 0_o

This is a great invention thing, but it's a sizable fraction of what the node handles anyways right now!

You should only really need to do getwork calls like once a minute - it's changed like fifty times, ever.

Do you plan on releasing a miner that utilizes this technology? A modification of the one you made in the CC mining days maybe?

I'll lower getwork to once a minute (EDIT: lowered.), should I lower lastblock to 2 or 5 times a second?

As for making a miner, I'll eventually modify Yevano's miner to use the websocket system.

EDIT: Ok that's weird... one of my getwork requests (That happen once every minute) returned the ceriat.net/krist page. Is this just a glitch or is my 10 lastblock requests a second too fast for it?

Edited by luker2009, 19 May 2015 - 03:05 AM.


#465 Demystify

  • New Members
  • 2 posts

Posted 19 May 2015 - 07:09 AM

Hey Yevano, I downloaded your miner to my computer but whenever I try to run it nothing happens. Any idea why that's happening? I'm running Windows 7 and I already managed to get Grim's miner to work but I was hoping to try something faster. Did I miss some installation instructions maybe?

#466 3d6

  • Members
  • 336 posts

Posted 19 May 2015 - 01:28 PM

View Postluker2009, on 19 May 2015 - 02:17 AM, said:

View Postcossacksson, on 19 May 2015 - 02:12 AM, said:

Ten requests a second to my node? 0_o

This is a great invention thing, but it's a sizable fraction of what the node handles anyways right now!

You should only really need to do getwork calls like once a minute - it's changed like fifty times, ever.

Do you plan on releasing a miner that utilizes this technology? A modification of the one you made in the CC mining days maybe?

I'll lower getwork to once a minute (EDIT: lowered.), should I lower lastblock to 2 or 5 times a second?

As for making a miner, I'll eventually modify Yevano's miner to use the websocket system.

EDIT: Ok that's weird... one of my getwork requests (That happen once every minute) returned the ceriat.net/krist page. Is this just a glitch or is my 10 lastblock requests a second too fast for it?

I don't think more than 1 request per second is necessary or particularly safe; a better idea might be to make my server contact yours when a block is found?

#467 Dahknee

  • Members
  • 1,808 posts
  • Location/home/da

Posted 19 May 2015 - 01:45 PM

View Postkornichen, on 07 March 2015 - 10:34 AM, said:

It don't know whether the plan was to only use this with ComputerCraft or not but I think a Bukkit plugin would be great. With a Bukkit plugin, even vanilla servers could use this and give their users the possibility to trade in Krist or to convert Krist to another ingame currency (but not vice versa). That would make Krist more popular. I would like to write a Bukkit plugin if I am not planning in the wrong direction.

Already have a BungeeCord Proxy Plugin, :D Making the bukkit plugin, just waiting for the API details from creator.

#468 Tron

  • Members
  • 63 posts
  • LocationMinecraftia

Posted 19 May 2015 - 02:02 PM

View Postcossacksson, on 19 May 2015 - 01:28 PM, said:

I don't think more than 1 request per second is necessary or particularly safe; a better idea might be to make my server contact yours when a block is found?

Ok I lowered it to once per second.

I'm not saying your way wouldn't work (It probably would work.) but if your server can contact mine wouldn't it be possible to instead contact the miners of new blocks?

#469 3d6

  • Members
  • 336 posts

Posted 19 May 2015 - 02:10 PM

View Postluker2009, on 19 May 2015 - 02:02 PM, said:

View Postcossacksson, on 19 May 2015 - 01:28 PM, said:

I don't think more than 1 request per second is necessary or particularly safe; a better idea might be to make my server contact yours when a block is found?

Ok I lowered it to once per second.

I'm not saying your way wouldn't work (It probably would work.) but if your server can contact mine wouldn't it be possible to instead contact the miners of new blocks?

Well, that would be a lot of requests. I was thinking about just waiting to respond to ?lastblock calls until a new block is actually found.

#470 Tron

  • Members
  • 63 posts
  • LocationMinecraftia

Posted 19 May 2015 - 02:15 PM

View Postcossacksson, on 19 May 2015 - 02:10 PM, said:

View Postluker2009, on 19 May 2015 - 02:02 PM, said:

View Postcossacksson, on 19 May 2015 - 01:28 PM, said:

I don't think more than 1 request per second is necessary or particularly safe; a better idea might be to make my server contact yours when a block is found?

Ok I lowered it to once per second.

I'm not saying your way wouldn't work (It probably would work.) but if your server can contact mine wouldn't it be possible to instead contact the miners of new blocks?

Well, that would be a lot of requests. I was thinking about just waiting to respond to ?lastblock calls until a new block is actually found.

Might be best to make a ?newblock for that though, new miners will need the previous block.

#471 3d6

  • Members
  • 336 posts

Posted 19 May 2015 - 02:56 PM

View Postluker2009, on 19 May 2015 - 02:15 PM, said:

View Postcossacksson, on 19 May 2015 - 02:10 PM, said:

View Postluker2009, on 19 May 2015 - 02:02 PM, said:

View Postcossacksson, on 19 May 2015 - 01:28 PM, said:

I don't think more than 1 request per second is necessary or particularly safe; a better idea might be to make my server contact yours when a block is found?

Ok I lowered it to once per second.

I'm not saying your way wouldn't work (It probably would work.) but if your server can contact mine wouldn't it be possible to instead contact the miners of new blocks?

Well, that would be a lot of requests. I was thinking about just waiting to respond to ?lastblock calls until a new block is actually found.

Might be best to make a ?newblock for that though, new miners will need the previous block.

And ?getworklong too.

#472 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 19 May 2015 - 06:13 PM

View PostDemystify, on 19 May 2015 - 07:09 AM, said:

Hey Yevano, I downloaded your miner to my computer but whenever I try to run it nothing happens. Any idea why that's happening? I'm running Windows 7 and I already managed to get Grim's miner to work but I was hoping to try something faster. Did I miss some installation instructions maybe?

My miner is a command line program. You'll have to open up command line in the folder where the jar is located and run "java -jar YTCIKristMiner.jar <args>". The first time you run it you can leave the args blank and the program will tell you what the arguments are.

Also, the program is compiled for Java 8 so if you get some weird error about a class version you need to update your Java.

#473 Demystify

  • New Members
  • 2 posts

Posted 19 May 2015 - 06:40 PM

View PostYevano, on 19 May 2015 - 06:13 PM, said:

View PostDemystify, on 19 May 2015 - 07:09 AM, said:

Hey Yevano, I downloaded your miner to my computer but whenever I try to run it nothing happens. Any idea why that's happening? I'm running Windows 7 and I already managed to get Grim's miner to work but I was hoping to try something faster. Did I miss some installation instructions maybe?

My miner is a command line program. You'll have to open up command line in the folder where the jar is located and run "java -jar YTCIKristMiner.jar <args>". The first time you run it you can leave the args blank and the program will tell you what the arguments are.

Also, the program is compiled for Java 8 so if you get some weird error about a class version you need to update your Java.
Thanks for the help, I appreciate it! My MH/s rates on this are fantastic compared to Grim's.

#474 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 19 May 2015 - 06:52 PM

Here's the source for my miner. I should rewrite it so it isn't so damn hard to read, but I'm too lazy for all that. :D

#475 Joelahughes

  • Members
  • 17 posts

Posted 19 May 2015 - 09:05 PM

could someone give me a link to a good krist miner?

#476 Tron

  • Members
  • 63 posts
  • LocationMinecraftia

Posted 19 May 2015 - 09:10 PM

View PostJoelahughes, on 19 May 2015 - 09:05 PM, said:

could someone give me a link to a good krist miner?
http://yevano.me/shr...IKristMiner.jar is a good one by Yevano, he just posted the source at https://github.com/Y...tci-krist-miner as well.

#477 Joelahughes

  • Members
  • 17 posts

Posted 19 May 2015 - 10:37 PM

By the way, how's the android krist wallet going?

#478 Abahu

  • Members
  • 20 posts

Posted 20 May 2015 - 01:02 AM

View PostJoelahughes, on 19 May 2015 - 10:37 PM, said:

By the way, how's the android krist wallet going?

I'm curious about this as well. I bring my tablet to school everyday, and I often want to check on my balance.

BTW: Yevano's miner definitely works for me. Grims didn't give me any blocks. +1 to you, Yevano!

#479 Joelahughes

  • Members
  • 17 posts

Posted 20 May 2015 - 01:35 AM

I think I am going to use Yevano's miner, thanks

#480 Anavrins

  • Members
  • 775 posts

Posted 20 May 2015 - 10:15 AM

View Postcossacksson, on 18 May 2015 - 06:44 PM, said:

Block 68310 has a hash of 000000000001, the lowest ever found by a Krist miner! It would be accepted even if ?getwork was 1!
Eleven leading zeroes, by kanavi35hk. Congratulations!
Whoa, did not notice that up until your post :P
That's pretty crazy.

Edit: Is there any way to know what was the value of the block I mined to get that?
Something like ?getblock=68309

Edited by Anavrins, 21 May 2015 - 02:43 AM.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users