File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,6 @@ Escrow Part
292
292
func (tx * SendMoney ) EscrowValidate (dbTx bool ) error {
293
293
var (
294
294
accountBalance model.AccountBalance
295
- block * model.Block
296
295
err error
297
296
row * sql.Row
298
297
)
@@ -310,14 +309,6 @@ func (tx *SendMoney) EscrowValidate(dbTx bool) error {
310
309
return blocker .NewBlocker (blocker .ValidationErr , "RecipientAddressRequired" )
311
310
}
312
311
313
- block , err = util .GetLastBlock (tx .QueryExecutor , tx .BlockQuery )
314
- if err != nil {
315
- return blocker .NewBlocker (blocker .ValidationErr , err .Error ())
316
- }
317
- if uint64 (block .GetHeight ()) >= tx .Escrow .GetTimeout () {
318
- return blocker .NewBlocker (blocker .ValidationErr , "TransactionExpired" )
319
- }
320
-
321
312
// todo: this is temporary solution, later we should depend on coinbase, so no genesis transaction exclusion in
322
313
// validation needed
323
314
if tx .SenderAddress != constant .MainchainGenesisAccountAddress {
You can’t perform that action at this time.
0 commit comments