fix fmt, and add test_before_submit script

pull/10/head
Rongjian Lan 7 years ago
parent 589b15a2ee
commit c025c6e411
  1. 7
      README.md
  2. 1
      blockchain/utxopool_test.go
  3. 2
      test_before_submit.sh

@ -25,12 +25,15 @@ go get github.com/go-stack/stack
```
## Usage
```
./deploy.sh local_config.txt
```
## Testing
Make sure you the following command and make sure everything passed before submitting your code.
'''
./test_before_submit.sh
'''

@ -34,7 +34,6 @@ func TestVerifyOneTransactionFail(t *testing.T) {
t.Error("failed to create a new transaction.")
}
tx.TxInput = append(tx.TxInput, tx.TxInput[0])
if utxoPool.VerifyOneTransaction(tx, nil) {
t.Error("Tx with multiple identical TxInput shouldn't be valid")

@ -0,0 +1,2 @@
go test ./...
./.travis.gofmt.sh
Loading…
Cancel
Save