fix/355-increase-tree-service-client-cache-size #359
2 changed files with 7 additions and 4 deletions
|
@ -9,6 +9,7 @@ Changelog for FrostFS Node
|
||||||
- Take network settings into account during netmap contract update (#100)
|
- Take network settings into account during netmap contract update (#100)
|
||||||
- Read config files from dir even if config file not provided via `--config` for node (#238)
|
- Read config files from dir even if config file not provided via `--config` for node (#238)
|
||||||
- Expired by more than 1 epoch objects could be returned (#262)
|
- Expired by more than 1 epoch objects could be returned (#262)
|
||||||
|
- Notary requests parsing according to `neo-go`'s updates (#268)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
### Updated
|
### Updated
|
||||||
|
|
|
@ -185,13 +185,15 @@ func (p Preparator) validateNotaryRequest(nr *payload.P2PNotaryRequest) error {
|
||||||
}
|
}
|
||||||
invokerWitness := ln == 4
|
invokerWitness := ln == 4
|
||||||
|
|
||||||
|
multiInvScript := nr.MainTransaction.Scripts[1].InvocationScript
|
||||||
|
|
||||||
// alphabet node should handle only notary requests
|
// alphabet node should handle only notary requests
|
||||||
// that have been sent unsigned(by storage nodes) =>
|
// that have been sent unsigned (by storage nodes) =>
|
||||||
// such main TXs should have dummy scripts as an
|
// such main TXs should have either a dummy or an
|
||||||
// invocation script
|
// empty script as an invocation script
|
||||||
//
|
//
|
||||||
// this check prevents notary flow recursion
|
// this check prevents notary flow recursion
|
||||||
if !bytes.Equal(nr.MainTransaction.Scripts[1].InvocationScript, p.dummyInvocationScript) {
|
if len(multiInvScript) > 0 && !bytes.Equal(nr.MainTransaction.Scripts[1].InvocationScript, p.dummyInvocationScript) {
|
||||||
return ErrTXAlreadyHandled
|
return ErrTXAlreadyHandled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue