OSDN Git Service

Added blockchain struct.
authorgguoss <1536310027@qq.com>
Fri, 14 Jul 2017 05:57:40 +0000 (13:57 +0800)
committergguoss <1536310027@qq.com>
Fri, 14 Jul 2017 05:57:40 +0000 (13:57 +0800)
commit57f3cff9088f5e8be89e211b224b1641e7b48c0e
tree66771fec6f7ecf14c458c366adc535f03dd15506
parent0704587c3d0e128e9f1a04589f4e63fb7a98a230
Added blockchain struct.
139 files changed:
README.md
cmd/blockchain/commands/flags/log_level.go [new file with mode: 0644]
cmd/blockchain/commands/init.go [new file with mode: 0644]
cmd/blockchain/commands/root.go [new file with mode: 0644]
cmd/blockchain/commands/run_node.go [new file with mode: 0644]
cmd/blockchain/commands/version.go [new file with mode: 0644]
cmd/blockchain/main.go [new file with mode: 0644]
database/pg/errors.go [new file with mode: 0644]
database/pg/listen.go [new file with mode: 0644]
database/pg/pg.go [new file with mode: 0644]
database/pg/pg_test.go [new file with mode: 0644]
database/pg/pgtest/ctx_test.go [new file with mode: 0644]
database/pg/pgtest/doc.go [new file with mode: 0644]
database/pg/pgtest/dump.go [new file with mode: 0644]
database/pg/pgtest/pgtest.go [new file with mode: 0644]
database/pg/pgtest/wrap.go [new file with mode: 0644]
database/pg/query.go [new file with mode: 0644]
database/sinkdb/internal/sinkpb/gen.go [new file with mode: 0644]
database/sinkdb/internal/sinkpb/op.pb.go [new file with mode: 0644]
database/sinkdb/internal/sinkpb/op.proto [new file with mode: 0644]
database/sinkdb/internal/sinkpb/snapshot.pb.go [new file with mode: 0644]
database/sinkdb/internal/sinkpb/snapshot.proto [new file with mode: 0644]
database/sinkdb/op.go [new file with mode: 0644]
database/sinkdb/sinkdb.go [new file with mode: 0644]
database/sinkdb/sinkdb_test.go [new file with mode: 0644]
database/sinkdb/sinkdbtest/sinkdbtest.go [new file with mode: 0644]
database/sinkdb/state.go [new file with mode: 0644]
database/sinkdb/state_test.go [new file with mode: 0644]
database/sinkdb/version.go [new file with mode: 0644]
database/sqlutil/doc.go [new file with mode: 0644]
database/sqlutil/logdriver.go [new file with mode: 0644]
encoding/blockchain/blockchain.go [new file with mode: 0644]
encoding/blockchain/blockchain_test.go [new file with mode: 0644]
encoding/bufpool/bufpool.go [new file with mode: 0644]
encoding/json/duration.go [new file with mode: 0644]
encoding/json/duration_test.go [new file with mode: 0644]
encoding/json/json.go [new file with mode: 0644]
errors/doc.go [new file with mode: 0644]
errors/errors.go [new file with mode: 0644]
errors/errors_test.go [new file with mode: 0644]
errors/example_test.go [new file with mode: 0644]
errors/stack.go [new file with mode: 0644]
errors/writer.go [new file with mode: 0644]
errors/writer_test.go [new file with mode: 0644]
protocol/bc/asset.go [new file with mode: 0644]
protocol/bc/asset_test.go [new file with mode: 0644]
protocol/bc/bc.pb.go [new file with mode: 0644]
protocol/bc/bc.proto [new file with mode: 0644]
protocol/bc/bctest/tx.go [new file with mode: 0644]
protocol/bc/block.go [new file with mode: 0644]
protocol/bc/blockheader.go [new file with mode: 0644]
protocol/bc/doc.go [new file with mode: 0644]
protocol/bc/entry.go [new file with mode: 0644]
protocol/bc/entry_test.go [new file with mode: 0644]
protocol/bc/gen.go [new file with mode: 0644]
protocol/bc/hash.go [new file with mode: 0644]
protocol/bc/issuance.go [new file with mode: 0644]
protocol/bc/legacy/bc_test.go [new file with mode: 0644]
protocol/bc/legacy/block.go [new file with mode: 0644]
protocol/bc/legacy/block_commitment.go [new file with mode: 0644]
protocol/bc/legacy/block_header.go [new file with mode: 0644]
protocol/bc/legacy/block_test.go [new file with mode: 0644]
protocol/bc/legacy/block_witness.go [new file with mode: 0644]
protocol/bc/legacy/fuzz_test.go [new file with mode: 0644]
protocol/bc/legacy/issuance.go [new file with mode: 0644]
protocol/bc/legacy/issuance_witness.go [new file with mode: 0644]
protocol/bc/legacy/map.go [new file with mode: 0644]
protocol/bc/legacy/map_test.go [new file with mode: 0644]
protocol/bc/legacy/output_commitment.go [new file with mode: 0644]
protocol/bc/legacy/spend.go [new file with mode: 0644]
protocol/bc/legacy/transaction.go [new file with mode: 0644]
protocol/bc/legacy/transaction_test.go [new file with mode: 0644]
protocol/bc/legacy/tx_test.go [new file with mode: 0644]
protocol/bc/legacy/txinput.go [new file with mode: 0644]
protocol/bc/legacy/txoutput.go [new file with mode: 0644]
protocol/bc/merkle.go [new file with mode: 0644]
protocol/bc/merkle_test.go [new file with mode: 0644]
protocol/bc/mux.go [new file with mode: 0644]
protocol/bc/nonce.go [new file with mode: 0644]
protocol/bc/output.go [new file with mode: 0644]
protocol/bc/retirement.go [new file with mode: 0644]
protocol/bc/spend.go [new file with mode: 0644]
protocol/bc/time.go [new file with mode: 0644]
protocol/bc/timerange.go [new file with mode: 0644]
protocol/bc/translation.md [new file with mode: 0644]
protocol/bc/tx.go [new file with mode: 0644]
protocol/bc/txheader.go [new file with mode: 0644]
protocol/block.go [new file with mode: 0644]
protocol/block_test.go [new file with mode: 0644]
protocol/patricia/patricia.go [new file with mode: 0644]
protocol/patricia/patricia_test.go [new file with mode: 0644]
protocol/protocol.go [new file with mode: 0644]
protocol/prottest/block.go [new file with mode: 0644]
protocol/prottest/block_test.go [new file with mode: 0644]
protocol/prottest/doc.go [new file with mode: 0644]
protocol/prottest/memstore/memstore.go [new file with mode: 0644]
protocol/recover.go [new file with mode: 0644]
protocol/recover_test.go [new file with mode: 0644]
protocol/state/snapshot.go [new file with mode: 0644]
protocol/state/snapshot_test.go [new file with mode: 0644]
protocol/tx.go [new file with mode: 0644]
protocol/tx_test.go [new file with mode: 0644]
protocol/validation/block_test.go [new file with mode: 0644]
protocol/validation/fuzz_test.go [new file with mode: 0644]
protocol/validation/validation.go [new file with mode: 0644]
protocol/validation/validation_test.go [new file with mode: 0644]
protocol/validation/vmcontext.go [new file with mode: 0644]
protocol/validation/vmcontext_test.go [new file with mode: 0644]
protocol/vm/assemble.go [new file with mode: 0644]
protocol/vm/assemble_test.go [new file with mode: 0644]
protocol/vm/bitwise.go [new file with mode: 0644]
protocol/vm/bitwise_test.go [new file with mode: 0644]
protocol/vm/context.go [new file with mode: 0644]
protocol/vm/control.go [new file with mode: 0644]
protocol/vm/control_test.go [new file with mode: 0644]
protocol/vm/crypto.go [new file with mode: 0644]
protocol/vm/crypto_test.go [new file with mode: 0644]
protocol/vm/doc.go [new file with mode: 0644]
protocol/vm/errors.go [new file with mode: 0644]
protocol/vm/introspection.go [new file with mode: 0644]
protocol/vm/introspection_test.go [new file with mode: 0644]
protocol/vm/numeric.go [new file with mode: 0644]
protocol/vm/numeric_test.go [new file with mode: 0644]
protocol/vm/ops.go [new file with mode: 0644]
protocol/vm/ops_test.go [new file with mode: 0644]
protocol/vm/pushdata.go [new file with mode: 0644]
protocol/vm/pushdata_test.go [new file with mode: 0644]
protocol/vm/splice.go [new file with mode: 0644]
protocol/vm/splice_test.go [new file with mode: 0644]
protocol/vm/stack.go [new file with mode: 0644]
protocol/vm/stack_test.go [new file with mode: 0644]
protocol/vm/types.go [new file with mode: 0644]
protocol/vm/types_test.go [new file with mode: 0644]
protocol/vm/vm.go [new file with mode: 0644]
protocol/vm/vm_test.go [new file with mode: 0644]
protocol/vm/vmutil/builder.go [new file with mode: 0644]
protocol/vm/vmutil/builder_test.go [new file with mode: 0644]
protocol/vm/vmutil/script.go [new file with mode: 0644]
protocol/vm/vmutil/script_test.go [new file with mode: 0644]