mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
commit
87a095eae5
3 changed files with 11 additions and 9 deletions
|
|
@ -20,7 +20,7 @@ builds:
|
||||||
- netgo
|
- netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
-s -w
|
-s -w
|
||||||
|
|
||||||
- id: darwin-arm64
|
- id: darwin-arm64
|
||||||
main: ./cmd/geth
|
main: ./cmd/geth
|
||||||
binary: bor
|
binary: bor
|
||||||
|
|
@ -35,7 +35,7 @@ builds:
|
||||||
- netgo
|
- netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
-s -w
|
-s -w
|
||||||
|
|
||||||
- id: linux-amd64
|
- id: linux-amd64
|
||||||
main: ./cmd/geth
|
main: ./cmd/geth
|
||||||
binary: bor
|
binary: bor
|
||||||
|
|
@ -49,7 +49,7 @@ builds:
|
||||||
tags:
|
tags:
|
||||||
- netgo
|
- netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
# We need to build a static binary because we are building in a glibc based system and running in a musl container
|
# We need to build a static binary because we are building in a glibc based system and running in a musl container
|
||||||
-s -w -extldflags "-static"
|
-s -w -extldflags "-static"
|
||||||
|
|
||||||
- id: linux-arm64
|
- id: linux-arm64
|
||||||
|
|
@ -65,7 +65,7 @@ builds:
|
||||||
tags:
|
tags:
|
||||||
- netgo
|
- netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
# We need to build a static binary because we are building in a glibc based system and running in a musl container
|
# We need to build a static binary because we are building in a glibc based system and running in a musl container
|
||||||
-s -w -extldflags "-static"
|
-s -w -extldflags "-static"
|
||||||
|
|
||||||
nfpms:
|
nfpms:
|
||||||
|
|
@ -112,7 +112,7 @@ dockers:
|
||||||
extra_files:
|
extra_files:
|
||||||
- builder/files/genesis-mainnet-v1.json
|
- builder/files/genesis-mainnet-v1.json
|
||||||
- builder/files/genesis-testnet-v4.json
|
- builder/files/genesis-testnet-v4.json
|
||||||
|
|
||||||
- image_templates:
|
- image_templates:
|
||||||
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
|
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
|
||||||
dockerfile: Dockerfile.release
|
dockerfile: Dockerfile.release
|
||||||
|
|
|
||||||
|
|
@ -1422,10 +1422,12 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
|
||||||
// newRPCPendingTransaction returns a pending transaction that will serialize to the RPC representation
|
// newRPCPendingTransaction returns a pending transaction that will serialize to the RPC representation
|
||||||
func newRPCPendingTransaction(tx *types.Transaction, current *types.Header, config *params.ChainConfig) *RPCTransaction {
|
func newRPCPendingTransaction(tx *types.Transaction, current *types.Header, config *params.ChainConfig) *RPCTransaction {
|
||||||
var baseFee *big.Int
|
var baseFee *big.Int
|
||||||
|
blockNumber := uint64(0)
|
||||||
if current != nil {
|
if current != nil {
|
||||||
baseFee = misc.CalcBaseFee(config, current)
|
baseFee = misc.CalcBaseFee(config, current)
|
||||||
|
blockNumber = current.Number.Uint64()
|
||||||
}
|
}
|
||||||
return newRPCTransaction(tx, common.Hash{}, 0, 0, baseFee, config)
|
return newRPCTransaction(tx, common.Hash{}, blockNumber, 0, baseFee, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// newRPCTransactionFromBlockIndex returns a transaction that will serialize to the RPC representation.
|
// newRPCTransactionFromBlockIndex returns a transaction that will serialize to the RPC representation.
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VersionMajor = 0 // Major version component of the current release
|
VersionMajor = 0 // Major version component of the current release
|
||||||
VersionMinor = 2 // Minor version component of the current release
|
VersionMinor = 2 // Minor version component of the current release
|
||||||
VersionPatch = 13 // Patch version component of the current release
|
VersionPatch = 14 // Patch version component of the current release
|
||||||
VersionMeta = "stable" // Version metadata to append to the version string
|
VersionMeta = "stable" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue