Commit graph

11534 commits

Author SHA1 Message Date
Banana-J
a54a645cda
fix: always check for error value and return nil, err where possible (#426)
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
2024-02-11 20:32:24 +11:00
Banana-J
b739db6a52
fix: add a error log when author not found for the block that will be emitted to ethstats (#427)
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
2024-02-11 20:31:48 +11:00
Liam
54b254e25c
lower log level for pretty log (#420)
Co-authored-by: Liam Lai <liam.lai@datameshgroup.com.au>
2024-02-11 20:27:37 +11:00
Wanwiset Peerapatanapokin
30581274a1
RIN-08 RIN-10 RIN-11 Fix curve issues (#425)
* update secp256k1 library from go-eth code

* cast deprecated functions to use new BitCurve type

* add IsOnCurve checks and tests

* add test outcome check
2024-02-11 01:51:11 +04:00
Anil Chinchawale
7c6a81af5b
Merge pull request #421 from XinFinOrg/bump-version-2.0.2
bump-version-2.0.2
2024-02-10 14:43:13 +05:30
Banana-J
f453ce8315
fix: missing validation in scalar range check (#417) 2024-02-09 19:56:27 +11:00
Banana-J
ea7d5cc9ad
fix: remove unnecesasry int conversion in the bulletproof.go (#419)
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
2024-02-06 22:13:28 +11:00
Liam Lai
a937594fc4 bump-version-2.0.2 2024-02-05 20:31:01 +08:00
Banana-J
3e0deddfaa
fix: missing length validaiton after doing regex (#415)
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
2024-02-05 21:43:04 +11:00
Liam
fea90a97df
RIN-02 Panic Due to Integer Overflow in Signature Size Calculation (#401)
* RIN-02 Panic Due to Integer Overflow in Signature Size Calculation

* assert the error

* simply overflow check

* simply overflow check

---------

Co-authored-by: Liam Lai <liam.lai@datameshgroup.com>
2024-02-03 10:02:14 +08:00
Banana-J
95e108c3e9
fix: limit the max size of lending item extradata can be inside the t… (#405)
* fix: limit the max size of lending item extradata can be inside the trading and lending transactions

* chore: add comment for the MaxLendingExtraDataSize constant
2024-01-29 11:31:48 +11:00
Banana-J
b4d842be75
chore: remove unnecessary order.status assignment (#407) 2024-01-29 11:31:36 +11:00
Banana-J
976dd799ae
chore: remove redunant nil check (#408) 2024-01-29 11:31:28 +11:00
Banana-J
326a8c8984
fix: Fix Potential Index Out of Bound (#409) 2024-01-29 11:31:21 +11:00
Banana-J
0664e9fc47
chore: remove the unused false return value from GetCollaterals method (#410) 2024-01-29 11:31:10 +11:00
Banana-J
d70c15667b
chore: remove the unused method in ringct.go (#411) 2024-01-29 11:31:02 +11:00
Banana-J
cac03bd960
fix: GenNewKeyRing should return out of bound error if s and ring size equal in value (#412) 2024-01-29 11:27:48 +11:00
Banana-J
743fc8500b
chore: return statement optimization (#406) 2024-01-28 16:58:41 +11:00
Banana-J
a3c392cdde
Fix xdcx infinite recursive calls (#404)
* fix: Make the unused methods in leveldb.go in XDCxDAO to panic or return error if called

* fix: apply the same fix in mongodb of the XDCxDAO as well
2024-01-28 16:57:58 +11:00
Banana-J
2504961a33
fix: replace all time.after with the time.newtimer (#400) 2024-01-27 21:01:24 +11:00
Daniel Liu
0d7dd867b7
Merge pull request #402 from gzliudan/XDP-02
remove key with empty value from map txs in function NewOrderTransactionByNonce
2024-01-26 10:34:33 +08:00
Daniel Liu
7403063660
Merge pull request #403 from gzliudan/fix-func-PadTo32Bytes
fix bug and eliminate loop in func PadTo32Bytes
2024-01-26 10:33:38 +08:00
Daniel Liu
ffa38cd8d1 fix bug and eliminate loop in func PadTo32Bytes 2024-01-24 16:31:13 +08:00
Daniel Liu
e097f2b0df remove key with empty value from map txs in func NewOrderTransactionByNonce 2024-01-24 13:45:50 +08:00
Liam
559bb4f7f5
Merge pull request #394 from XinFinOrg/xds-01-fixing-rpc-module
fix: update rpc module to include eth fix from #26064 and #26723
2024-01-22 14:55:13 +08:00
Liam
513114dacf
Merge pull request #398 from XinFinOrg/XDC-01
XDC-01 | Potential Missed Fixings in `crypto` Module
2024-01-22 14:53:49 +08:00
Liam
ddac0a6af7
Merge pull request #399 from XinFinOrg/xdp-01
fix: remove unnecessary assignment
2024-01-22 14:53:13 +08:00
Jianrong
71c442547a chore: log the error object 2024-01-21 11:04:56 +11:00
Jianrong
786e3793b0 fix: remove unnecessary assignment 2024-01-20 12:46:31 +11:00
Jianrong
7f0215195b fix: update rpc module to include eth fix from #26064 and #26723 2024-01-20 12:21:48 +11:00
Wanwiset Peerapatanapokin
9bb8c8cfd4
XDP-03 (#396)
* add error catching skeleton

* add debug logs

* change to Warn level log

* change to Warn level 2

* verbose logging
2024-01-19 15:05:27 +04:00
Wanwiset Peerapatanapokin
aaa246f60e
PDF-01 (#397)
* replace deprecated ioutil lib calls

* fix for FileInfo type required

* fix for ioutil.Discard

* fix .Discard

* fix for go-bindata generated files
2024-01-19 15:05:03 +04:00
Liam
81ff6421d0
fix Panic In ProcessOrderPending Leads To Chain Halt (#392)
Co-authored-by: Liam Lai <liamlai@Liams-Laptop.local>
2024-01-19 11:22:24 +11:00
uji
d4b98063e8 crypto/bn256/cloudflare: fix asm for dynamic linking (#24476)
When using -buildmode=shared, R15 is clobbered by a global variable
access; use a different register instead.

Fixes: #24439
2024-01-18 21:59:02 +08:00
Guillaume Ballet
af8c4d4e85 crypto/cloudflare/bn256: fix in-place addition and unmarshalling (#23419) 2024-01-18 21:58:12 +08:00
Martin Holst Swende
3a6e26b844 crypto/bn256: improve bn256 fuzzer (#21815)
* crypto/cloudflare: fix nil deref in random G1/G2 reading

* crypto/bn256: improve fuzzer

* crypto/bn256: fix some flaws in fuzzer
2024-01-18 21:57:31 +08:00
Antoine Rondelet
c48e9873f3 crypto/bn256/cloudflare: checks for nil pointers in Marshal functions (#19609)
* Added checks for nil pointers in Marshal functions

* Set nil pointer to identity in GT before marshaling
2024-01-18 21:57:04 +08:00
Abd ar-Rahman Hamidi
3d635c544e crypto/secp256k1: add checking z sign in affineFromJacobian (#18419)
The z == 0 check is hit whenever we Add two points with the same x1/x2
coordinate. crypto/elliptic uses the same check in their affineFromJacobian
function. This change does not affect block processing or tx signature verification
in any way, because it does not use the Add or Double methods.
2024-01-18 21:56:28 +08:00
Liam
a76c885774
devnet deployment issue (#395)
Co-authored-by: Liam Lai <liamlai@Liams-Laptop.local>
2024-01-17 23:07:13 +08:00
Liam
c36df9f01b
Merge pull request #393 from XinFinOrg/fix-timeout-too-fast
fix timeout too fast issue
2024-01-16 18:49:39 +08:00
Liam Lai
3e6ce89f79 fix timeout too fast issue 2024-01-16 16:15:05 +08:00
Banana-J
d24f187bfd
Host rpc node in ecs (#391) 2024-01-15 20:53:48 +11:00
Liam
32254671f5
Merge pull request #370 from gzliudan/fix-issue-369
Fix nil Error in function reportBlock
2023-12-30 01:24:38 +11:00
Anil Chinchawale
cb04b9acb1
Merge pull request #388 from XinFinOrg/change-vote-log-level 2023-12-29 18:39:24 +05:30
Liam Lai
4446931e9e change vote log level 2023-12-29 22:49:52 +11:00
Liam
e659cb70a8
Merge pull request #382 from XinFinOrg/new-api-to-list-out-missed-rounds-miners
New api to list out missed rounds miners
2023-12-29 02:29:29 +11:00
Liam
ad258fd1a2
Merge pull request #386 from XinFinOrg/resolve-conflict
Resolve conflict
2023-12-28 23:05:46 +11:00
Jianrong
8e1f71e86e Fix the typo missied to missed 2023-12-28 23:03:53 +11:00
Jianrong
e83c0a0954 Add tests to cover the new GetMissiedRoundsInEpochByBlockNum API 2023-12-28 17:37:30 +11:00
Jianrong
14f6b267c4 Make getMissiedRoundsInEpochByBlockNum API method lower case 2023-12-28 15:13:05 +11:00