Giter Site home page Giter Site logo

gochain's People

Contributors

crisadamo avatar grrrben avatar patrickjmcd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gochain's Issues

Hashing of blocks is not working

Hi,

Nice project. Was working on a Go Blockchain implementation myself and noticed that your hashing always returns the same hash, throughout the entire chain.

The thing is that you are trying to hash a block with binary.Write(&buf, binary.BigEndian, block) which gives you an error you don't handle. The data for binary.Write must be a fixed-size value, your Block contains a string which isn't fixed size.

I've made a workaround by marshalling the block first, that way the binary.Write succeeds and your hashing the chain properly. It is a bit slow though, if you'll find a better solution, drop me a line.

You can see it here, feel free to use it:
https://github.com/Grrrben/gocoin/blob/master/blockchain.go#L55

Cheers.

HTTP is slow, switch to rpc

Switch form HTTP too RPC to increase the performance of every request and you get a lot of additional features which HTTP don't have.

This project seems pretty interesting. I can offer you my help to speed up the development process.

contact me anytime ;)

Cannot find Package Error

Hi there,
I was going through your code. However , i am not able to run the go code.

When i run : go build -o gochain

ERROR:

main.go:6:5: cannot find package "github.com/crisadamo/gochain" in any of:
/usr/local/go/src/github.com/crisadamo/gochain (from $GOROOT)
($GOPATH not set

Please mind that i have just started with this technology. Kindly Help.
Good Day!

Package issue?

Hi Cristian,
I get the following error when I build.
Thank you for clue.

gochain/cmd(master*) » go build -o gobuild
main.go:6:5: cannot find package "github.com/crisadamo/gochain" in any of:
/usr/local/Cellar/go/1.8.1/libexec/src/github.com/crisadamo/gochain (from $GOROOT)
/Users/eos/go/src/github.com/crisadamo/gochain (from $GOPATH)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.