OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
070c09e
)
what can i say
author
HAOYUatHZ
<haoyu@protonmail.com>
Fri, 21 Jun 2019 03:23:55 +0000
(11:23 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Fri, 21 Jun 2019 03:23:55 +0000
(11:23 +0800)
federation/warder.go
patch
|
blob
|
history
diff --git
a/federation/warder.go
b/federation/warder.go
index
0f66d4f
..
a7689fd
100644
(file)
--- a/
federation/warder.go
+++ b/
federation/warder.go
@@
-331,6
+331,17
@@
func (w *warder) getSigns(destTx interface{}, ormTx *orm.CrossTransaction) ([]st
// TODO:
func (w *warder) attachSignsForTx(destTx interface{}, ormTx *orm.CrossTransaction, position uint8, signs []string) error {
+ var inputsLen int
+ switch destTx := destTx.(type) {
+ case *vaporTypes.Tx:
+ inputsLen = len(destTx.Inputs)
+ case *btmTypes.Tx:
+ inputsLen = len(destTx.Inputs)
+ default:
+ return errUnknownTxType
+ }
+
+ signWitness := make([][]string, inputsLen)
b, err := json.Marshal(signs)
if err != nil {