Make base transaction use block timestamp
@@ -28,7 +28,6 @@ import (
"github.com/icon-project/goloop/service/contract"
"github.com/icon-project/goloop/service/state"
"github.com/icon-project/goloop/service/transaction"
- "time"
)
type platform struct {
@@ -62,7 +61,8 @@ func (p *platform) ToRevision(value int) module.Revision {
func (p *platform) NewBaseTransaction(wc state.WorldContext) (module.Transaction, error) {
// TODO calculate issued i-score and amount balance. No changes on world context.
- t := common.HexInt64{Value: time.Now().UnixNano() / int64(time.Microsecond)}
+ // t := common.HexInt64{Value: time.Now().UnixNano() / int64(time.Microsecond)}
+ t := wc.BlockTimeStamp()
v := common.HexUint16{Value: module.TransactionVersion3}
es := wc.GetExtensionState().(*iiss.ExtensionStateImpl)
prep, issue := iiss.GetIssueData(es)
