Browse Source

Clean

feature/serveapicli
Eduard S 3 years ago
parent
commit
bfba1ba2d2
4 changed files with 2 additions and 1331 deletions
  1. +2
    -2
      db/historydb/nodeinfo.go
  2. +0
    -1326
      foobar
  3. +0
    -1
      go.mod
  4. +0
    -2
      go.sum

+ 2
- 2
db/historydb/nodeinfo.go

@ -11,9 +11,9 @@ import (
"github.com/hermeznetwork/hermez-node/apitypes"
"github.com/hermeznetwork/hermez-node/common"
"github.com/hermeznetwork/hermez-node/db"
"github.com/hermeznetwork/tracerr"
"github.com/jmoiron/sqlx"
"github.com/russross/meddler"
"github.com/ztrue/tracerr"
)
const (
@ -484,7 +484,7 @@ func (hdb *HistoryDB) UpdateRecommendedFee() error {
}
func (hdb *HistoryDB) updateNodeInfo(setUpdatedNodeInfo func(*sqlx.Tx, *NodeInfo) error) error {
// Create a SQL transaction o read and update atomicaly
// Create a SQL transaction or read and update atomicaly
txn, err := hdb.dbWrite.Beginx()
if err != nil {
return tracerr.Wrap(err)

+ 0
- 1326
foobar
File diff suppressed because it is too large
View File


+ 0
- 1
go.mod

@ -26,7 +26,6 @@ require (
github.com/russross/meddler v1.0.0
github.com/stretchr/testify v1.6.1
github.com/urfave/cli/v2 v2.2.0
github.com/ztrue/tracerr v0.3.0
go.uber.org/zap v1.16.0
golang.org/x/crypto v0.0.0-20201217014255-9d1352758620
golang.org/x/net v0.0.0-20200822124328-c89045814202

+ 0
- 2
go.sum

@ -690,8 +690,6 @@ github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDf
github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
github.com/ziutek/mymysql v1.5.4 h1:GB0qdRGsTwQSBVYuVShFBKaXSnSnYYC2d9knnE1LHFs=
github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0=
github.com/ztrue/tracerr v0.3.0 h1:lDi6EgEYhPYPnKcjsYzmWw4EkFEoA/gfe+I9Y5f+h6Y=
github.com/ztrue/tracerr v0.3.0/go.mod h1:qEalzze4VN9O8tnhBXScfCrmoJo10o8TN5ciKjm6Mww=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=

Loading…
Cancel
Save