X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=api%2Ftransact.go;h=26719d3174a4c3756bb95e9576d6dc85593373e3;hb=cc3526dc33e7b56e49934d6daed814027968b43f;hp=76e6d537b624ad990d70db18ef7b72672e82d5ba;hpb=f578f565b46c85e08256c089a9068ee390105048;p=bytom%2Fvapor.git diff --git a/api/transact.go b/api/transact.go index 76e6d537..26719d31 100644 --- a/api/transact.go +++ b/api/transact.go @@ -8,12 +8,11 @@ import ( log "github.com/sirupsen/logrus" - "github.com/vapor/account" - "github.com/vapor/blockchain/txbuilder" - "github.com/vapor/errors" - "github.com/vapor/net/http/reqid" - "github.com/vapor/protocol/bc" - "github.com/vapor/protocol/bc/types" + "github.com/bytom/vapor/account" + "github.com/bytom/vapor/blockchain/txbuilder" + "github.com/bytom/vapor/errors" + "github.com/bytom/vapor/protocol/bc" + "github.com/bytom/vapor/protocol/bc/types" ) var ( @@ -89,8 +88,7 @@ func (a *API) buildSingle(ctx context.Context, req *BuildRequest) (*txbuilder.Te // POST /build-transaction func (a *API) build(ctx context.Context, buildReqs *BuildRequest) Response { - subctx := reqid.NewSubContext(ctx, reqid.New()) - tmpl, err := a.buildSingle(subctx, buildReqs) + tmpl, err := a.buildSingle(ctx, buildReqs) if err != nil { return NewErrorResponse(err) } @@ -178,8 +176,7 @@ func (a *API) buildTxs(ctx context.Context, req *BuildRequest) ([]*txbuilder.Tem // POST /build-chain-transactions func (a *API) buildChainTxs(ctx context.Context, buildReqs *BuildRequest) Response { - subctx := reqid.NewSubContext(ctx, reqid.New()) - tmpls, err := a.buildTxs(subctx, buildReqs) + tmpls, err := a.buildTxs(ctx, buildReqs) if err != nil { return NewErrorResponse(err) }