OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add one id generation which account and asset use by signer
[bytom/bytom.git]
/
blockchain
/
signers
/
signers.go
diff --git
a/blockchain/signers/signers.go
b/blockchain/signers/signers.go
index
ae372b3
..
1779e2e
100644
(file)
--- a/
blockchain/signers/signers.go
+++ b/
blockchain/signers/signers.go
@@
-129,6
+129,8
@@
func Create(ctx context.Context, db dbm.DB, typ string, xpubs []chainkd.XPub, qu
keyIndex uint64
)
+ id, keyIndex = Idgenerate(typeIDMap[typ])
+
return &Signer{
ID: id,
Type: typ,