Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something wrong with make start #1

Open
zhouzhou84 opened this issue Aug 20, 2018 · 0 comments
Open

something wrong with make start #1

zhouzhou84 opened this issue Aug 20, 2018 · 0 comments

Comments

@zhouzhou84
Copy link

Description

I run make migrate-contracts successfully,but when I use make start , it returns:

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ make start
make[1]: Entering directory '/home/ubuntu/gocode/src/github.com/kyokan/drawbridge/solidity'
truffle compile
make[1]: Leaving directory '/home/ubuntu/gocode/src/github.com/kyokan/drawbridge/solidity'
go build -o build/extract-abi ./cmd/extract_abi.go
mkdir -p ./build/abi
./build/extract-abi --contracts ./solidity/build/contracts/LightningERC20.json,./solidity/build/contracts/ERC20.json --output-dir ./build/abi
2018/08/20 09:31:21 Outputted ABI file LightningERC20.json
2018/08/20 09:31:21 Outputted ABI file ERC20.json
abigen --abi ./build/abi/LightningERC20.json --pkg contracts --type LightningERC20 --out ./pkg/contracts/lighting_erc20.go
abigen --abi ./build/abi/ERC20.json --pkg contracts --type ERC20 --out ./pkg/contracts/erc20.go
go build -gcflags='-N -l' -o ./build/drawbridge ./cmd/drawbridge.go
# github.com/kyokan/drawbridge/internal/wallet
internal/wallet/commitments.go:46:40: cannot use lnwallet.ComputeCommitmentPoint(preimage[:]) (type *"github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcd/btcec".PublicKey) as type *"github.com/btcsuite/btcd/btcec".PublicKey in return argument
# github.com/kyokan/drawbridge/internal/lndclient
internal/lndclient/client.go:61:61: cannot use mac (type *"gopkg.in/macaroon.v2".Macaroon) as type *"github.com/lightningnetwork/lnd/vendor/gopkg.in/macaroon.v2".Macaroon in argument to macaroons.NewMacaroonCredential
internal/lndclient/client.go:69:36: cannot use conn (type *"google.golang.org/grpc".ClientConn) as type *"github.com/lightningnetwork/lnd/vendor/google.golang.org/grpc".ClientConn in argument to lnrpc.NewLightningClient
# github.com/kyokan/drawbridge/internal/p2p
internal/p2p/net.go:37:15: cannot use identityKey.BTCEC() (type *"github.com/btcsuite/btcd/btcec".PublicKey) as type *"github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcd/btcec".PublicKey in field value
internal/p2p/node.go:70:39: cannot use identityKey (type *"github.com/btcsuite/btcd/btcec".PrivateKey) as type *"github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcd/btcec".PrivateKey in argument to brontide.NewListener
internal/p2p/node.go:88:24: cannot use identityKey (type *"github.com/btcsuite/btcd/btcec".PrivateKey) as type *"github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcd/btcec".PrivateKey in argument to brontide.Dial
internal/p2p/node.go:166:41: cannot use addr.IdentityKey (type *"github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcd/btcec".PublicKey) as type *"github.com/btcsuite/btcd/btcec".PublicKey in argument to "github.com/kyokan/drawbridge/pkg/crypto".PublicFromBTCEC
internal/p2p/peer.go:42:56: cannot use conn.RemotePub() (type *"github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcd/btcec".PublicKey) as type *"github.com/btcsuite/btcd/btcec".PublicKey in argument to "github.com/kyokan/drawbridge/pkg/crypto".PublicFromBTCEC
Makefile:31: recipe for target 'compile' failed
make: *** [compile] Error 2

I update the lastest lnd for your project , is there somethig wrong ?

system conf

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ uname -a
Linux ip-172-31-15-69 4.4.0-1061-aws #70-Ubuntu SMP Fri May 25 21:47:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ lnd -V
lnd version 0.4.2-beta commit=21841c9f6b065a625e5dcb68c18dfbf3ee25326b

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ lncli -v
lncli version 0.4.2 commit=21841c9f6b065a625e5dcb68c18dfbf3ee25326b

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ node -v
v10.8.0

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ nodejs -v
v8.11.3

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ truffle version
Truffle v4.1.13 (core: 4.1.13)
Solidity v0.4.24 (solc-js)

ubuntu@ip-172-31-15-69:~/gocode/src/github.com/kyokan/drawbridge$ geth version
Geth
Version: 1.8.13-stable
Git Commit: 225171a4bfcc16bd12a1906b1e0d43d0b18c353b
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.10
Operating System: linux
GOPATH=/home/ubuntu/gocode
GOROOT=/usr/lib/go-1.10

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant