Skip to content

Commit

Permalink
Merge pull request #609 from iketheadore/fix-cli-bug
Browse files Browse the repository at this point in the history
Fix cli bug
  • Loading branch information
gz-c committed Nov 3, 2017
2 parents 01ab4cd + 889ed15 commit 1f4165a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/api/cli/create_rawtx.go
Expand Up @@ -441,16 +441,16 @@ func getSufficientUnspents(unspents []UnspentOut, coins uint64) ([]UnspentOut, e

for _, us := range addrOuts {
for i, u := range us {
coins, err := droplet.FromString(u.Coins)
c, err := droplet.FromString(u.Coins)
if err != nil {
return nil, err
}

if coins == 0 {
if c == 0 {
continue
}

totalCoins += coins
totalCoins += c
outs = append(outs, us[i])

if totalCoins >= coins {
Expand Down
2 changes: 0 additions & 2 deletions src/daemon/gnet/pool.go
Expand Up @@ -230,8 +230,6 @@ func (pool *ConnectionPool) Run() error {
}
}()

logger.Info("Listening for connections...")

loop:
for {
conn, err := ln.Accept()
Expand Down

0 comments on commit 1f4165a

Please sign in to comment.