diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23fa25af0..db889ded8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -140,6 +140,15 @@ jobs: with: image-tag: ${{ github.ref_name }} + immediate-docker-release: + name: Docker (immediate) + if: github.event_name == 'pull_request' && + github.base_ref == 'release-lts-1' # these pull requests trigger a release via a quicker workflow which skips the tests + uses: vocdoni/vocdoni-node/.github/workflows/docker-release.yml@main + secrets: inherit + with: + image-tag: ${{ github.head_ref }} + job_gocoverage_textfmt: name: Convert coverage (bin->txt) continue-on-error: true # never mark the whole CI as failed because of this job diff --git a/api/accounts.go b/api/accounts.go index ad3322719..6f6d51246 100644 --- a/api/accounts.go +++ b/api/accounts.go @@ -289,11 +289,14 @@ func (a *API) accountSetHandler(msg *apirest.APIdata, ctx *httprouter.HTTPContex } } + log.Warn("pre sendTx") + // send the transaction to the blockchain res, err := a.sendTx(req.TxPayload) if err != nil { return err } + log.Warn("post sendTx") // prepare the reply resp := &AccountSet{ @@ -304,17 +307,20 @@ func (a *API) accountSetHandler(msg *apirest.APIdata, ctx *httprouter.HTTPContex if a.storage != nil && req.Metadata != nil { sctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() + log.Warn("pre Publish") cid, err := a.storage.Publish(sctx, req.Metadata) if err != nil { log.Errorf("could not publish to storage: %v", err) } else { resp.MetadataURL = a.storage.URIprefix() + cid } + log.Warnf("post Publish, metadata: %s", resp.MetadataURL) + if !ipfs.CIDequals(cid, metadataCID) { log.Errorf("metadata CID does not match metadata content (%s != %s)", cid, metadataCID) } } - + log.Warn("pre Marshal") var data []byte if data, err = json.Marshal(resp); err != nil { return err