Giter Club home page Giter Club logo

wangweix / blockchain-java Goto Github PK

View Code? Open in Web Editor NEW
225.0 13.0 113.0 279 KB

A simplified blockchain implementation in Java

Home Page: https://wangwei.one/categories/blockchain/

License: Apache License 2.0

Java 99.64% Shell 0.36%
blockchain blockchain-technology blockchain-java-programming bitcoin utxo pow merkle-tree bitcoin-script bitcoin-wallet bitcoin-address bitcoin-transaction bitcoin-mining bitcoin-miner bitcoin-proof bitcoin-persistence bitcoin-network bitcoin-java blockchain-java p2p-network netty-p2p

blockchain-java's Issues

持久化和命令行那节编译报错

java -jar blockchain-java-jar-with-dependencies.jar -h 这一行执行没问题。
执行如下命令 java -jar blockchain-java-jar-with-dependencies.jar -add "Send 1.5 BTC to wangwei"
发生如下错误
E:\Android\blockchain-java>java -jar target\blockchain-java-jar-with-dependencies.jar -print
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB
at one.wangwei.blockchain.store.RocksDBUtils.openDB(RocksDBUtils.java:62)
at one.wangwei.blockchain.store.RocksDBUtils.(RocksDBUtils.java:53)
at one.wangwei.blockchain.store.RocksDBUtils.getInstance(RocksDBUtils.java:38)
at one.wangwei.blockchain.cli.CLI.parse(CLI.java:49)
at one.wangwei.blockchain.cli.Main.main(Main.java:7)

大佬,继续更新呗!

我希望可以参与你的进来开发,我是在交易所工作,对区块链有点浅显的认识,希望可以共同进步,我觉得我们先不管双花、手续费、POW的弊端什么的,先做出一个可以正常运行的项目,默认所有节点都是合法的在运行,能达到各节点通信,达成共识,这是短期目标!

BlockChain中getAllSpentTXOs方法

王维,你好:
BlockChain中getAllSpentTXOs方法,根据能解锁的交易输入得到已经花费的UTXO,这样做是不是有点问题。因为创造的交易输出有可能是找回给自己的零钱不属于花费的UTXO,不是这样吗

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.