Skip to content

Add multi pretransaction support#1026

Open
lucas7788 wants to merge 9 commits intoontio:masterfrom
lucas7788:add_multi_pre
Open

Add multi pretransaction support#1026
lucas7788 wants to merge 9 commits intoontio:masterfrom
lucas7788:add_multi_pre

Conversation

@lucas7788
Copy link
Contributor

No description provided.

carltraveler and others added 7 commits June 20, 2019 18:39
* add block height check when run transaction

* finetune the config height

* update blockheight, estimate by ((two weeks block) * 2 + current blockheight)

* make pickitem support both big.int and bytearray. ensure big.int do not expose to user

* update opcode hight constant to future block
* fix Vbft Block serdes

* enforce merkleRoot data in Block msg

* fix error handlings
return ResponsePack(berr.INVALID_PARAMS)
}
res := make([]interface{}, 0)
for _, param := range paras {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set a limit on len(paras)

case POST_RAW_TX:
req["PreExec"] = r.FormValue("preExec")
case POST_MULTI_RAW_TX:
req["PreExec"] = r.FormValue("preExec")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MULTI_RAW_TX only supports preExec ?

}

// multi pre tx, [tx1, tx2,tx3]
func MultiPreTransaction(params []interface{}) map[string]interface{} {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not reuse the above function?

}

// multi pre tx, [tx1, tx2,tx3]
func MultiPreTransaction(params map[string]interface{}) map[string]interface{} {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename as "PreexecuteMultiTransactions" ?

@laizy
Copy link
Contributor

laizy commented Jul 12, 2019

what‘s is the usage scenario?

@laizy laizy force-pushed the master branch 2 times, most recently from 8c8ee59 to dc599e9 Compare July 6, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants