OSDN Git Service

feat: add processIssuing (#152)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Wed, 12 Jun 2019 09:33:30 +0000 (17:33 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 12 Jun 2019 09:33:30 +0000 (17:33 +0800)
commit8da5d90ecadf13f1510dbbc4bce05645684142a2
tree85331eb44ce27febde9d86d68536d93240c78797
parent0bd22d212b767702bd1c99edb05d5f3a57cb572c
feat: add processIssuing (#152)

* init asset

* add confirmations

* fix

* add processBlock

* clean db

* add getAsset

* fix https://github.com/Bytom/vapor/pull/152#discussion_r291964871 & https://github.com/Bytom/vapor/pull/152#discussion_r291964144

* init AssetCache

* set maxAssetCached

* add rm get

* implement add get remove assetCache

* use assetCache instead of assetMap

* use hashicorp/golang-lru

* add bytom vendor

* fix submodule

* use golang/groupcache/lru

* fix https://github.com/Bytom/vapor/pull/152#discussion_r292805572

* fix asset create
135 files changed:
docs/federation/federation.sql
federation/config/config.go
federation/database/cache.go [new file with mode: 0644]
federation/database/orm/asset.go [new file with mode: 0644]
federation/synchron/mainchain_keeper.go
vendor/github.com/bytom/common/address.go [new file with mode: 0644]
vendor/github.com/bytom/common/address_test.go [new file with mode: 0644]
vendor/github.com/bytom/common/bech32/bech32.go [new file with mode: 0644]
vendor/github.com/bytom/common/bech32/bech32_test.go [new file with mode: 0644]
vendor/github.com/bytom/common/bech32/doc.go [new file with mode: 0644]
vendor/github.com/bytom/common/bech32/example_test.go [new file with mode: 0644]
vendor/github.com/bytom/common/bytes.go [new file with mode: 0644]
vendor/github.com/bytom/common/sort.go [new file with mode: 0644]
vendor/github.com/bytom/common/types.go [new file with mode: 0644]
vendor/github.com/bytom/common/types_test.go [new file with mode: 0644]
vendor/github.com/bytom/consensus/general.go [new file with mode: 0644]
vendor/github.com/bytom/consensus/general_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/crypto.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/bench_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/chainkd.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/chainkd_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/expanded_key.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/expanded_key_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/serialize.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/serialize_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/chainkd/util.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/ecmath/point.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/ecmath/point_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/ecmath/scalar.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/ed25519.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/ed25519_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/internal/edwards25519/chain_export.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/internal/edwards25519/const.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/internal/edwards25519/edwards25519.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/ed25519/testdata/sign.input.gz [new file with mode: 0644]
vendor/github.com/bytom/crypto/randentropy/rand_entropy.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/scrypt/example_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/scrypt/scrypt.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/scrypt/scrypt_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/scrypt/smix.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sha3pool/pool.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/cert_pool.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/p256.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/pkcs1.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/pkcs8.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/sm2.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/sm2_test.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/verify.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm2/x509.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm3/sm3.go [new file with mode: 0644]
vendor/github.com/bytom/crypto/sm3/sm3_test.go [new file with mode: 0644]
vendor/github.com/bytom/encoding/blockchain/blockchain.go [new file with mode: 0644]
vendor/github.com/bytom/encoding/bufpool/bufpool.go [new file with mode: 0644]
vendor/github.com/bytom/errors/doc.go [new file with mode: 0644]
vendor/github.com/bytom/errors/errors.go [new file with mode: 0644]
vendor/github.com/bytom/errors/errors_test.go [new file with mode: 0644]
vendor/github.com/bytom/errors/stack.go [new file with mode: 0644]
vendor/github.com/bytom/errors/writer.go [new file with mode: 0644]
vendor/github.com/bytom/errors/writer_test.go [new file with mode: 0644]
vendor/github.com/bytom/math/checked/checked.go [new file with mode: 0644]
vendor/github.com/bytom/math/checked/checked_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/asset.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/asset_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/bc.pb.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/bc.proto [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/block.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/blockheader.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/coinbase.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/entry.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/entry_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/hash.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/issuance.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/mux.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/output.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/retirement.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/spend.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/tx.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/tx_status.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/tx_status_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/tx_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/txheader.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/block.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/block_commitment.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/block_commitment_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/block_header.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/block_header_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/block_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/coinbase.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/issuance.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/map.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/map_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/merkle.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/merkle_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/output_commitment.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/output_commitment_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/spend.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/spend_commitment.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/spend_commitment_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/spend_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/transaction.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/transaction_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/txinput.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/txinput_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/txoutput.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/bc/types/txoutput_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/assemble.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/assemble_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/bitwise.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/bitwise_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/context.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/control.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/control_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/crypto.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/crypto_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/errors.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/introspection.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/introspection_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/numeric.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/numeric_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/ops.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/ops_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/pushdata.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/pushdata_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/splice.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/splice_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/stack.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/stack_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/types.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/types_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/vm.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/vm_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/vmutil/builder.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/vmutil/builder_test.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/vmutil/script.go [new file with mode: 0644]
vendor/github.com/bytom/protocol/vm/vmutil/script_test.go [new file with mode: 0644]