Page MenuHomePhabricator

Remove globals.h use from net.cpp
ClosedPublic

Authored by deadalnix on Jun 15 2017, 12:10.

Details

Summary

The only place where it is used is to compute a buffer size, and it doesn't really need to be used there. ONE8MEGABYTE is good enough.

Test Plan
make check
../qa/pull-tester/rpc-tests.py maxuploadtarget.py

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Code changes look ok for current test, and I can accept on that basis.

I will make myself a task to verify whether maxuploadtarget.py still passes if bigger blocks (i.e. the user's max upload target is respected even if blocks are >> 1MB).
Best would be to extend maxuploadtarget.py test accordingly to do a bigger-block check.

This revision is now accepted and ready to land.Jun 16 2017, 11:06
This revision was automatically updated to reflect the committed changes.