OSDN Git Service

precisely estimate gas for standard transaction (#1688)
authoroysheng <33340252+oysheng@users.noreply.github.com>
Mon, 15 Apr 2019 08:54:42 +0000 (16:54 +0800)
committerPaladz <yzhu101@uottawa.ca>
Mon, 15 Apr 2019 08:54:42 +0000 (16:54 +0800)
commit6cc273b9126f1df4406ed125a3fc506a00ead8c9
tree9df499c19c502d687d2a24f3b9be830bf86166db
parent001a76f5c9e5f70f18700cbe448b47f2e1b048ac
precisely estimate gas for standard transaction (#1688)

* opitmise estimate tranasction gas

* modify arguments

* delete rounding calculation

* adjust to the flexible gas

* add unit test

* optimise

* optimise code

* precise calculate tx size

* modify code style

* swap

* swap optimise
api/api_test.go
api/transact.go
blockchain/txbuilder/finalize.go