├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── accuser └── accuser.go ├── cluster ├── cluster.go ├── params.go ├── params_test.go ├── peer_manager.go └── peer_manager_test.go ├── config.toml ├── crypto ├── crypto.pb.go ├── crypto.proto ├── hash256.go ├── pbtypes_ext.go ├── secure_signer.go ├── signer.go ├── signer_test.go └── verify.go ├── dgwdb ├── database.go └── database_test.go ├── distribution ├── dbops.go └── proposal.go ├── glide.lock ├── glide.yaml ├── httpsvr ├── handlers.go ├── handlers_test.go ├── protocol.go └── server.go ├── log └── log.go ├── node ├── http_handlers.go ├── leader.go ├── msg_validation.go ├── node.go ├── node_sign.go ├── node_sign_test.go ├── node_test.go ├── rpc_handlers.go ├── sync_daemon.go └── sync_daemon_test.go ├── price ├── price.go └── price_test.go ├── primitives ├── blockstore.go ├── dbops.go ├── dbops_test.go ├── genesis.go └── txstore.go ├── proto ├── braft.pb.go ├── braft.proto └── pbtypes_ext.go ├── server.go ├── tools └── generate_pubkey.go └── util ├── assert └── assert.go ├── base.go ├── event.go ├── flags.go ├── hash_utils.go ├── home_dir.go ├── signal ├── signal.go └── signal_test.go ├── sort └── sort.go └── task ├── queue.go └── task.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/README.md -------------------------------------------------------------------------------- /accuser/accuser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/accuser/accuser.go -------------------------------------------------------------------------------- /cluster/cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/cluster/cluster.go -------------------------------------------------------------------------------- /cluster/params.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/cluster/params.go -------------------------------------------------------------------------------- /cluster/params_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/cluster/params_test.go -------------------------------------------------------------------------------- /cluster/peer_manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/cluster/peer_manager.go -------------------------------------------------------------------------------- /cluster/peer_manager_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/cluster/peer_manager_test.go -------------------------------------------------------------------------------- /config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/config.toml -------------------------------------------------------------------------------- /crypto/crypto.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/crypto.pb.go -------------------------------------------------------------------------------- /crypto/crypto.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/crypto.proto -------------------------------------------------------------------------------- /crypto/hash256.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/hash256.go -------------------------------------------------------------------------------- /crypto/pbtypes_ext.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/pbtypes_ext.go -------------------------------------------------------------------------------- /crypto/secure_signer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/secure_signer.go -------------------------------------------------------------------------------- /crypto/signer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/signer.go -------------------------------------------------------------------------------- /crypto/signer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/signer_test.go -------------------------------------------------------------------------------- /crypto/verify.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/crypto/verify.go -------------------------------------------------------------------------------- /dgwdb/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/dgwdb/database.go -------------------------------------------------------------------------------- /dgwdb/database_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/dgwdb/database_test.go -------------------------------------------------------------------------------- /distribution/dbops.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/distribution/dbops.go -------------------------------------------------------------------------------- /distribution/proposal.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/distribution/proposal.go -------------------------------------------------------------------------------- /glide.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/glide.lock -------------------------------------------------------------------------------- /glide.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/glide.yaml -------------------------------------------------------------------------------- /httpsvr/handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/httpsvr/handlers.go -------------------------------------------------------------------------------- /httpsvr/handlers_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/httpsvr/handlers_test.go -------------------------------------------------------------------------------- /httpsvr/protocol.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/httpsvr/protocol.go -------------------------------------------------------------------------------- /httpsvr/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/httpsvr/server.go -------------------------------------------------------------------------------- /log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/log/log.go -------------------------------------------------------------------------------- /node/http_handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/http_handlers.go -------------------------------------------------------------------------------- /node/leader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/leader.go -------------------------------------------------------------------------------- /node/msg_validation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/msg_validation.go -------------------------------------------------------------------------------- /node/node.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/node.go -------------------------------------------------------------------------------- /node/node_sign.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/node_sign.go -------------------------------------------------------------------------------- /node/node_sign_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/node_sign_test.go -------------------------------------------------------------------------------- /node/node_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/node_test.go -------------------------------------------------------------------------------- /node/rpc_handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/rpc_handlers.go -------------------------------------------------------------------------------- /node/sync_daemon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/sync_daemon.go -------------------------------------------------------------------------------- /node/sync_daemon_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/node/sync_daemon_test.go -------------------------------------------------------------------------------- /price/price.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/price/price.go -------------------------------------------------------------------------------- /price/price_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/price/price_test.go -------------------------------------------------------------------------------- /primitives/blockstore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/primitives/blockstore.go -------------------------------------------------------------------------------- /primitives/dbops.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/primitives/dbops.go -------------------------------------------------------------------------------- /primitives/dbops_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/primitives/dbops_test.go -------------------------------------------------------------------------------- /primitives/genesis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/primitives/genesis.go -------------------------------------------------------------------------------- /primitives/txstore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/primitives/txstore.go -------------------------------------------------------------------------------- /proto/braft.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/proto/braft.pb.go -------------------------------------------------------------------------------- /proto/braft.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/proto/braft.proto -------------------------------------------------------------------------------- /proto/pbtypes_ext.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/proto/pbtypes_ext.go -------------------------------------------------------------------------------- /server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/server.go -------------------------------------------------------------------------------- /tools/generate_pubkey.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/tools/generate_pubkey.go -------------------------------------------------------------------------------- /util/assert/assert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/assert/assert.go -------------------------------------------------------------------------------- /util/base.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/base.go -------------------------------------------------------------------------------- /util/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/event.go -------------------------------------------------------------------------------- /util/flags.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/flags.go -------------------------------------------------------------------------------- /util/hash_utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/hash_utils.go -------------------------------------------------------------------------------- /util/home_dir.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/home_dir.go -------------------------------------------------------------------------------- /util/signal/signal.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/signal/signal.go -------------------------------------------------------------------------------- /util/signal/signal_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/signal/signal_test.go -------------------------------------------------------------------------------- /util/sort/sort.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/sort/sort.go -------------------------------------------------------------------------------- /util/task/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofgp/ofgp-core/HEAD/util/task/queue.go -------------------------------------------------------------------------------- /util/task/task.go: -------------------------------------------------------------------------------- 1 | package task 2 | 3 | type Task func() 4 | --------------------------------------------------------------------------------