Skip to content

Commit d80704d

Browse files
authored
Change default gasPrice to 1e6 (#258)
* Change default `gasPrice` to `1e9` * Change Fee byte_size to 1
1 parent 03e475a commit d80704d

File tree

5 files changed

+24
-54
lines changed

5 files changed

+24
-54
lines changed

es/ae/contract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const Contract = Ae.compose({
229229
defaults: {
230230
deposit: 0,
231231
vmVersion: 1,
232-
gasPrice: 1000000000, // min gasPrice 1e9
232+
gasPrice: 1000000, // min gasPrice 1e6
233233
amount: 0,
234234
gas: 1600000 - 21000,
235235
options: ''

es/tx/builder/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const FIELD_TYPES = {
144144
// FEE CALCULATION
145145
export const BASE_GAS = 15000
146146
export const GAS_PER_BYTE = 20
147-
export const FEE_BYTE_SIZE = 8
147+
export const FEE_BYTE_SIZE = 1
148148
export const DEFAULT_FEE = 20000
149149

150150
// MAP WITH FEE CALCULATION https://github.com/aeternity/protocol/blob/master/consensus/consensus.md#gas

es/tx/tx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { buildContractId, oracleQueryId } from './builder/helpers'
3434

3535
const ORACLE_VM_VERSION = 0
3636
const CONTRACT_VM_VERSION = 1
37-
const MIN_GAS_PRICE = 1000000000
37+
const MIN_GAS_PRICE = 1000000 // min gasPrice 1e6
3838
// TODO This values using as default for minerva node
3939
const CONTRACT_MINERVA_VM_ABI = 196609
4040
const CONTRACT_MINERVA_VM = 3

package-lock.json

Lines changed: 20 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/integration/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ contract Identity =
4949
`
5050
let contractId
5151
const deposit = 4
52-
const gasPrice = 1000000000
52+
const gasPrice = 1000000
5353
const gas = 1600000 - 21000 // MAX GAS
5454

5555
let _salt

0 commit comments

Comments
 (0)